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@xxxxxxx>
Reported-by: Bart Van Assche <bart.vanassche@xxxxxxxxxxx>
Tested-by: Bart Van Assche<bart.vanassche@xxxxxxxxxxx>
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Cc: Jens Axboe <axboe@xxxxxxxxx>
---
Jens,
I just realised that no-one has picked this patch up for -rc1. It was
discussed here previously:
http://lkml.kernel.org/r/20150803104309.GB4033@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Since it touches the block layer, are you fine with merging it?