block: kmemleak: Track the page allocations for struct request
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 14 Sep 2015 17:16:02 +0000 (18:16 +0100)
committerJens Axboe <axboe@fb.com>
Wed, 23 Sep 2015 17:00:57 +0000 (11:00 -0600)
commitf75782e4e067fd68249635699cb20dfe0489d743
tree9e8ed77c60570d04b8af9ce097bfbed26e4b19df
parentbcee19f424a0d8c26ecf2607b73c690802658b29
block: kmemleak: Track the page allocations for struct request

The pages allocated for struct request contain pointers to other slab
allocations (via ops->init_request). Since kmemleak does not track/scan
page allocations, the slab objects will be reported as leaks (false
positives). This patch adds kmemleak callbacks to allow tracking of such
pages.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Bart Van Assche <bart.vanassche@sandisk.com>
Tested-by: Bart Van Assche<bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c