OSDN Git Service

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)
commit85acb3ba2f925a0ec6928c1967c3adefa00682f4
tree8f33cf0708140ea17e4fa3d3fc31aadfd1867b0e
parenteca8b53a6769e60d6d8240d71202d73b0af81901
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