OSDN Git Service

blk-mq: simplify the plug handling in blk_mq_submit_bio
authorChristoph Hellwig <hch@lst.de>
Tue, 23 Nov 2021 16:04:41 +0000 (17:04 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Nov 2021 13:38:35 +0000 (06:38 -0700)
commit0c5bcc92d94a8f578ab2b06c1274e076cc8aecd3
tree30139bab0795108a04306b706a351751be57fd89
parenta4561f9fccc57a5fd56c53e21514f63825d8ace7
blk-mq: simplify the plug handling in blk_mq_submit_bio

blk_mq_submit_bio has two different plug cases, one that uses full
plugging and a limited plugging one.

The limited plugging case is only used for a corner case that does
not matter in real life:

 - no ->commit_rqs (so not NVMe)
 - no shared tags (so not SCSI)
 - not rotational (so no old disk or floppy driver)
 - must have multiple queues (so no eMMC)

Remove the limited merging case and all the related junk to simplify
blk_mq_submit_bio and the functions called from it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211123160443.1315598-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c
block/blk-mq.c
block/blk.h