[PATCH v3 09/10] blk-mq: handle failure path for initializing hctx

2014-09-12 Thread Ming Lei
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. Signed-off-by: Ming Lei --- block/blk-mq.c | 114 ++-- 1 file changed, 69

[PATCH v3 09/10] blk-mq: handle failure path for initializing hctx

2014-09-12 Thread Ming Lei
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. Signed-off-by: Ming Lei ming@canoical.com --- block/blk-mq.c | 114 ++--