summaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorLi Nan <linan122@huawei.com>2023-12-11 10:53:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-26 02:35:25 +0300
commit89665b3daea47fee90828d315353518ed0689048 (patch)
treeeb9eae1f71242536a71b515dabeb4ce1d2a1c9f7 /certs
parent1e1fe2bd87ac923b1e9a74871f567fc832104104 (diff)
downloadlinux-89665b3daea47fee90828d315353518ed0689048.tar.xz
block: Set memalloc_noio to false on device_add_disk() error path
[ Upstream commit 5fa3d1a00c2d4ba14f1300371ad39d5456e890d7 ] On the error path of device_add_disk(), device's memalloc_noio flag was set but not cleared. As the comment of pm_runtime_set_memalloc_noio(), "The function should be called between device_add() and device_del()". Clear this flag before device_del() now. Fixes: 25e823c8c37d ("block/genhd.c: apply pm_runtime_set_memalloc_noio on block devices") Signed-off-by: Li Nan <linan122@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20231211075356.1839282-1-linan666@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions