blk-mq: return tag/queue combo in the make_request_fn handlers
authorJens Axboe <axboe@fb.com>
Thu, 5 Nov 2015 17:41:40 +0000 (10:41 -0700)
committerJens Axboe <axboe@fb.com>
Sat, 7 Nov 2015 17:40:47 +0000 (10:40 -0700)
commit7b371636fb6d187873d9d2730c2b1febc48a9b47
tree28044eb235fb576771b171ade4e40cfd5d9343a8
parentdece16353ef47d8d33f5302bc158072a9d65e26f
blk-mq: return tag/queue combo in the make_request_fn handlers

Return a cookie, blk_qc_t, from the blk-mq make request functions, that
allows a later caller to uniquely identify a specific IO. The cookie
doesn't mean anything to the caller, but the caller can use it to later
pass back to the block layer. The block layer can then identify the
hardware queue and request from that cookie.

Signed-off-by: Jens Axboe <axboe@fb.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Acked-by: Keith Busch <keith.busch@intel.com>
block/blk-mq.c