Skip to content

blk-mq: initialize pdu of flush req explicitly

Ming Lei linux-scsi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6blk-mq: allocate flush_rq in blk_mq_init_flush()block/blk-flush.c block/blk-mq.c block/blk-mq.h+17 -120 replies
2/6blk-mq: introduce init_flush_rq callback and its pairblock/blk-flush.c block/blk-mq.c block/blk-mq.h +1 more+23 -00 replies
3/6blk-mq: don't copy pdu if init_flush_rq is implementedblock/blk-mq.c+4 -20 replies
4/6virtio-blk: implement init_flush_rqdrivers/block/virtio_blk.c+14 -11 reply
5/6scsi-lib: implement init_flush_rq and its pairdrivers/scsi/scsi_lib.c+27 -51 reply
6/6blk-mq: don't copy pdu any more for flush reqblock/blk-mq.c+0 -70 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] blk-mq: initialize pdu of flush req explicitly

Hi,

This patchset introduces init_flush_rq and its pair callback to initialize pdu of flush request explicitly, instead of using copying from request which is inefficient and buggy, and implements them in virtio-blk and scsi-lib.

 block/blk-flush.c          |   22 +++++++++++++++++++++-
 block/blk-mq.c             |   23 ++++++++---------------
 block/blk-mq.h             |    3 ++-
 drivers/block/virtio_blk.c |   15 ++++++++++++++-
 drivers/scsi/scsi_lib.c    |   32 +++++++++++++++++++++++++++-----
 include/linux/blk-mq.h     |    9 +++++++++
 6 files changed, 81 insertions(+), 23 deletions(-)

Thanks,
--
Ming Lei