]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
blk-mq: change gfp flags to GFP_NOIO in blk_mq_realloc_hw_ctxs
authorJianchao Wang <jianchao.w.wang@oracle.com>
Fri, 12 Oct 2018 10:07:26 +0000 (18:07 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 16 Oct 2019 09:55:36 +0000 (11:55 +0200)
commit3bcd45bfb72c996d62a67146205cbc4c5750a802
tree37bf51a8a64ecc63fc42e8726cfc3e2e9e9270c0
parentddd4dbf420c8c023648495250d093c06633ea839
blk-mq: change gfp flags to GFP_NOIO in blk_mq_realloc_hw_ctxs

BugLink: https://bugs.launchpad.net/bugs/1847155
[ Upstream commit 5b202853ffbc54b29f23c4b1b5f3948efab489a2 ]

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: Jianchao Wang <jianchao.w.wang@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
block/blk-core.c
block/blk-flush.c
block/blk-mq.c
block/blk.h