block: null_blk: end timed out poll request block-5.18-2022-04-14
authorMing Lei <ming.lei@redhat.com>
Wed, 13 Apr 2022 08:48:36 +0000 (16:48 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Apr 2022 16:16:33 +0000 (10:16 -0600)
commit3e3876d322aef82416ecc496a4d4a587e0fdf7a3
tree1abc55a28b782f33bd0c931110159031048a710b
parent8535c0185d14ea41f0efd6a357961b05daf6687e
block: null_blk: end timed out poll request

When poll request is timed out, it is removed from the poll list,
but not completed, so the request is leaked, and never get chance
to complete.

Fix the issue by ending it in timeout handler.

Fixes: 0a593fbbc245 ("null_blk: poll queue support")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220413084836.1571995-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c