]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
aoe: clean device rq_list in aoedev_downdev()
authorJustin Sanders <jsanders.devel@gmail.com>
Tue, 10 Jun 2025 17:05:59 +0000 (17:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:39 +0000 (11:07 +0100)
commit531aef4a1accb13b21a3b82ec29955f4733367d5
tree6efb6fd25c4a4a25911979c00606985e08df8f9e
parent97ceca6cfc87f3ccdaaf1abd26ab2cf1dbad8ba9
aoe: clean device rq_list in aoedev_downdev()

[ Upstream commit 7f90d45e57cb2ef1f0adcaf925ddffdfc5e680ca ]

An aoe device's rq_list contains accepted block requests that are
waiting to be transmitted to the aoe target. This queue was added as
part of the conversion to blk_mq. However, the queue was not cleaned out
when an aoe device is downed which caused blk_mq_freeze_queue() to sleep
indefinitely waiting for those requests to complete, causing a hang. This
fix cleans out the queue before calling blk_mq_freeze_queue().

Link: https://bugzilla.kernel.org/show_bug.cgi?id=212665
Fixes: 3582dd291788 ("aoe: convert aoeblk to blk-mq")
Signed-off-by: Justin Sanders <jsanders.devel@gmail.com>
Link: https://lore.kernel.org/r/20250610170600.869-1-jsanders.devel@gmail.com
Tested-By: Valentin Kleibel <valentin@vrvis.at>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/block/aoe/aoedev.c