Skip to content

loop: nowait aio bug fixes

Ming Lei linux-block 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v23 patches 0 repliesSuperseded
  3. v13 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- don't disable rqos
- add BD_LOWLEVEL_BIO_FIRST flag for loop to submit lowlevel bios first
- improves blk_mq_flush_plug_list() to accept new request added from ->queue_rq()

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4loop: move kiocb_start_write to aio prep phasedrivers/block/loop.c+5 -40 replies
2/4loop: fix error handling in aio functionsdrivers/block/loop.c+2 -40 replies
3/4loop: fix NOWAIT io hang by introducing BD_LOWLEVEL_BIO_FIRSTblock/blk-core.c drivers/block/loop.c include/linux/blk_types.h+15 -10 replies
4/4blk-mq: fix plug list corruption when queue_rq adds new requestsblock/blk-mq.c+48 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH V3 0/4] loop: nowait aio bug fixes

Hi Jens,

The 1st two patches fix error handling code paths for nowait aio.

The 3rd patch fixes IO hang issue because of rqos throttle.

The last patch improves blk_mq_flush_plug_list() to support new request added to plug list from ->queue_rq().

Tests:
- not observe regression on xfstests
- not observe performance regression on nvme polling/irq test

V3:
- don't disable rqos
- add BD_LOWLEVEL_BIO_FIRST flag for loop to submit lowlevel bios first
- improves blk_mq_flush_plug_list() to accept new request added from ->queue_rq()

V2:
- use QUEUE_FLAG_DISABLE_WBT_DEF to disable wbt, so that check of QUEUE_FLAG_QOS_ENABLED can work as expected

Ming Lei (4):
loop: move kiocb_start_write to aio prep phase
loop: fix error handling in aio functions
loop: fix NOWAIT io hang by introducing BD_LOWLEVEL_BIO_FIRST
blk-mq: fix plug list corruption when queue_rq adds new requests

 block/blk-core.c          |  3 +-
 block/blk-mq.c            | 64 +++++++++++++++++++++++++++++----------
 drivers/block/loop.c      | 27 ++++++++++++-----
 include/linux/blk_types.h |  1 +
 4 files changed, 70 insertions(+), 25 deletions(-)
Signature · 1 line
2.47.0