engines/io_uring: remove unnecessary SQ full check
authorCaleb Sander Mateos <csander@purestorage.com>
Sat, 31 May 2025 17:25:16 +0000 (11:25 -0600)
committerCaleb Sander Mateos <csander@purestorage.com>
Sat, 31 May 2025 17:25:16 +0000 (11:25 -0600)
commitd88e8c91a26150de2be19fcb776ec308e77f78a3
tree00e178ae5d115bc2c01a4bb33175c2e85940095b
parentc348db31ccce60f2808dd84c1f43f36a1556141a
engines/io_uring: remove unnecessary SQ full check

fio_ioring_queue() bails out if the SQ's tail + 1 == head. This will
always be false, since 0 <= tail - head <= entries. Probably it was
meant to check whether the SQ is full, i.e. tail == head + entries.
(The head index should be loaded with acquire ordering in that case.)
Checking for a full SQ isn't necessary anyways, as the prior check for
ld->queued == td->o.iodepth already ensures the SQ isn't full.

So remove the unnecessary and misleading tail + 1 == head check.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
engines/io_uring.c