diff options
author | Jianchao Wang <jianchao.w.wang@oracle.com> | 2018-10-12 13:07:26 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-10-14 00:42:01 +0300 |
commit | 5b202853ffbc54b29f23c4b1b5f3948efab489a2 (patch) | |
tree | 115c95fa117934258563e7c6530e94153651a4dc /block/blk-core.c | |
parent | 477e19dedc9d3e1f4443a1d4ae00572a988120ea (diff) | |
download | linux-5b202853ffbc54b29f23c4b1b5f3948efab489a2.tar.xz |
blk-mq: change gfp flags to GFP_NOIO in blk_mq_realloc_hw_ctxs
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>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index f12d2b65e5a5..c5539eed0202 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1163,7 +1163,7 @@ int blk_init_allocated_queue(struct request_queue *q) { WARN_ON_ONCE(q->mq_ops); - q->fq = blk_alloc_flush_queue(q, NUMA_NO_NODE, q->cmd_size); + q->fq = blk_alloc_flush_queue(q, NUMA_NO_NODE, q->cmd_size, GFP_KERNEL); if (!q->fq) return -ENOMEM; |