blk-mq: handle failure path for initializing hctx
authorMing Lei <ming.lei@canonical.com>
Thu, 25 Sep 2014 15:23:38 +0000 (23:23 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 25 Sep 2014 21:22:32 +0000 (15:22 -0600)
commit08e98fc6016c890c2f4ffba6decc0ca9d2d5d7f8
tree1f852a126a0f5282cd9c39f4540cfb1821f6d18d
parentfe052529e465daff25225aac769828baa88b7252
blk-mq: handle failure path for initializing hctx

Failure of initializing one hctx isn't handled, so this patch
introduces blk_mq_init_hctx() and its pair to handle it explicitly.
Also this patch makes code cleaner.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c