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

Signed-off-by: Catalin Marinas <>
Reported-by: Bart Van Assche <>
Tested-by: Bart Van Assche<>
Cc: Christoph Hellwig <>
Cc: Jens Axboe <>
1 file changed