From: Jens Axboe Date: Sat, 31 May 2014 03:20:50 +0000 (-0600) Subject: blk-mq: push IPI or local end_io decision to __blk_mq_complete_request() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~49^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed851860b4552fc8963ecf71eab9f6f7a5c19d74;p=pandora-kernel.git blk-mq: push IPI or local end_io decision to __blk_mq_complete_request() We have callers outside of the blk-mq proper (like timeouts) that want to call __blk_mq_complete_request(), so rename the function and put the decision code for whether to use ->softirq_done_fn or blk_mq_endio() into __blk_mq_complete_request(). This also makes the interface more logical again. blk_mq_complete_request() attempts to atomically mark the request completed, and calls __blk_mq_complete_request() if successful. __blk_mq_complete_request() then just ends the request. Signed-off-by: Jens Axboe --- Reading git-diff-tree failed