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)
committerJens Axboe <axboe@kernel.dk>
Sat, 13 Oct 2018 21:42:01 +0000 (15:42 -0600)
commit5b202853ffbc54b29f23c4b1b5f3948efab489a2
tree115c95fa117934258563e7c6530e94153651a4dc
parent477e19dedc9d3e1f4443a1d4ae00572a988120ea
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>
block/blk-core.c
block/blk-flush.c
block/blk-mq.c
block/blk.h