blk-mq: fix schedule from atomic context
authorMing Lei <tom.leiming@gmail.com>
Sat, 31 May 2014 16:43:37 +0000 (00:43 +0800)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:50 +0000 (12:54 -0600)
commit482c93337a4b81dacb69e96c407ae05755c5b3ab
treec5f85ad44d31daa87c416996566e6ceb660ebd82
parent4c069b868b5287d21f90cfed9f2cad38e8f65cc7
blk-mq: fix schedule from atomic context

blk_mq_put_ctx() has to be called before io_schedule() in
bt_get().

This patch fixes the problem by taking similar approach from
percpu_ida allocation for the situation.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-tag.c
block/blk-mq-tag.h
block/blk-mq.c
block/blk-mq.h