Use only space_left, not sqes_left

This commit is contained in:
Vitaliy Filippov
2025-11-23 15:17:57 +03:00
parent 5d3f3f47a7
commit 3ad83e8d13
4 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ void blockstore_impl_t::check_wait(blockstore_op_t *op)
{
if (PRIV(op)->wait_for == WAIT_SQE)
{
if (ringloop->sqes_left() < PRIV(op)->wait_detail)
if (ringloop->space_left() < PRIV(op)->wait_detail)
{
// stop submission if there's still no free space
#ifdef BLOCKSTORE_DEBUG
+1 -1
View File
@@ -27,7 +27,7 @@
#define IS_INSTANT(st) (((st) & BS_ST_TYPE_MASK) == BS_ST_DELETE || ((st) & BS_ST_INSTANT))
#define BS_SUBMIT_CHECK_SQES(n) \
if (ringloop->sqes_left() < (n))\
if (ringloop->space_left() < (n))\
{\
/* Pause until there are more requests available */\
PRIV(op)->wait_detail = (n);\