Skip to content

Commit e25c54d

Browse files
richardweinbergertorvalds
authored andcommitted
ubi: block: Fix missing blk_mq_end_request
Switching to BLK_MQ_F_BLOCKING wrongly removed the call to blk_mq_end_request(). Add it back to have our IOs finished Fixes: 91cc8fb ("ubi: block: set BLK_MQ_F_BLOCKING") Analyzed-by: Linus Torvalds <torvalds@linux-foundation.org> Reported-by: Daniel Palmer <daniel@0x0f.com> Link: https://lore.kernel.org/linux-mtd/CAHk-=wi29bbBNh3RqJKu3PxzpjDN5D5K17gEVtXrb7-6bfrnMQ@mail.gmail.com/ Signed-off-by: Richard Weinberger <richard@nod.at> Reviewed-by: Christoph Hellwig <hch@lst.de> Tested-by: Daniel Palmer <daniel@0x0f.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ef5f68c commit e25c54d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/mtd/ubi/block.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ static blk_status_t ubiblock_read(struct request *req)
221221

222222
rq_for_each_segment(bvec, req, iter)
223223
flush_dcache_page(bvec.bv_page);
224-
return errno_to_blk_status(ret);
224+
225+
blk_mq_end_request(req, errno_to_blk_status(ret));
226+
227+
return BLK_STS_OK;
225228
}
226229

227230
static int ubiblock_open(struct block_device *bdev, fmode_t mode)

0 commit comments

Comments
 (0)