Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 91cc8fbcc8c7 ("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>

authored by

Richard Weinberger and committed by
Linus Torvalds
e25c54d1 ef5f68cc

+4 -1
+4 -1
drivers/mtd/ubi/block.c
··· 221 221 222 222 rq_for_each_segment(bvec, req, iter) 223 223 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; 225 228 } 226 229 227 230 static int ubiblock_open(struct block_device *bdev, fmode_t mode)