Skip to content
Snippets Groups Projects
Commit 510e2c06 authored by Jianchao Wang's avatar Jianchao Wang Committed by 谢秀奇
Browse files

blk-mq: change gfp flags to GFP_NOIO in blk_mq_realloc_hw_ctxs


mainline inclusion
from mainline-4.20-rc1
commit 5b202853
category: bugfix
bugzilla: 5833
CVE: NA
---------------------------

blk_mq_realloc_hw_ctxs could be invoked during update hw queues.
At the momemt, IO is blocked. Change the gfp flags from GFP_KERNEL
to GFP_NOIO to avoid forever hang during memory allocation in
blk_mq_realloc_hw_ctxs.

Signed-off-by: default avatarJianchao Wang <jianchao.w.wang@oracle.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>

Signed-off-by: default avatarYufen Yu <yuyufen@huawei.com>
Reviewed-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 7e1b09cf
No related branches found
Tags v4.12-rc3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment