]> git.baikalelectronics.ru Git - kernel.git/commit
block: set request_list for request
authorShaohua Li <shli@fb.com>
Sat, 7 Oct 2017 00:56:00 +0000 (17:56 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Oct 2017 19:48:16 +0000 (13:48 -0600)
commitfa3290656d61094aeb93526233051b4d1cb8a167
tree8f33cf0708140ea17e4fa3d3fc31aadfd1867b0e
parentefc32820217bfdfb58cdf821001e066beed82074
block: set request_list for request

Legacy queue sets request's request_list, mq doesn't. This makes mq does
the same thing, so we can find cgroup of a request. Note, we really
only use blkg field of request_list, it's pointless to allocate mempool
for request_list in mq case.

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c