]> git.baikalelectronics.ru Git - 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)
committerJens Axboe <axboe@kernel.dk>
Sat, 13 Oct 2018 21:42:01 +0000 (15:42 -0600)
commitd7021fc91cd9410386a1f1590837fa8e73b74ea0
tree115c95fa117934258563e7c6530e94153651a4dc
parentd2af12b255dab191168eaeae9ca911632072df49
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