Skip to content

Commit 0e6e255

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: remove a bogus warning in __submit_bio_noacct_mq
If blk_mq_submit_bio flushes the plug list, bios for other disks can show up on current->bio_list. As that doesn't involve any stacking of block device it is entirely harmless and we should not warn about this case. Fixes: ff93ea0 ("block: shortcut __submit_bio_noacct for blk-mq drivers") Reported-by: kernel test robot <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 7c792f3 commit 0e6e255

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

block/blk-core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,14 +1154,13 @@ static blk_qc_t __submit_bio_noacct(struct bio *bio)
11541154

11551155
static blk_qc_t __submit_bio_noacct_mq(struct bio *bio)
11561156
{
1157-
struct gendisk *disk = bio->bi_disk;
11581157
struct bio_list bio_list[2] = { };
11591158
blk_qc_t ret = BLK_QC_T_NONE;
11601159

11611160
current->bio_list = bio_list;
11621161

11631162
do {
1164-
WARN_ON_ONCE(bio->bi_disk != disk);
1163+
struct gendisk *disk = bio->bi_disk;
11651164

11661165
if (unlikely(bio_queue_enter(bio) != 0))
11671166
continue;

0 commit comments

Comments
 (0)