Skip to content

Commit

Permalink
block: kyber: check if there are requests in ctx in kyber_has_work()
Browse files Browse the repository at this point in the history
There may be request in sw queue, and not fetched to domain queue
yet, so check it in kyber_has_work().

Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Ming Lei authored and axboe committed Nov 1, 2017
1 parent 7930d0a commit 63ba8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/kyber-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ static bool kyber_has_work(struct blk_mq_hw_ctx *hctx)
if (!list_empty_careful(&khd->rqs[i]))
return true;
}
return false;
return sbitmap_any_bit_set(&hctx->ctx_map);
}

#define KYBER_LAT_SHOW_STORE(op) \
Expand Down

0 comments on commit 63ba8e3

Please sign in to comment.