summaryrefslogtreecommitdiffstats
path: root/mm/kmemleak.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2019-10-21 10:38:00 +0200
committerJens Axboe <axboe@kernel.dk>2019-11-03 15:53:50 +0100
commitcba22d86e0a10b7070d2e6a7379dbea51aa0883c (patch)
tree184a976e8e9682608665f6b82ed38091b776e194 /mm/kmemleak.c
parentbdev: Factor out bdev revalidation into a common helper (diff)
downloadlinux-cba22d86e0a10b7070d2e6a7379dbea51aa0883c.tar.xz
linux-cba22d86e0a10b7070d2e6a7379dbea51aa0883c.zip
bdev: Refresh bdev size for disks without partitioning
Currently, block device size in not updated on second and further open for block devices where partition scan is disabled. This is particularly annoying for example for DVD drives as that means block device size does not get updated once the media is inserted into a drive if the device is already open when inserting the media. This is actually always the case for example when pktcdvd is in use. Fix the problem by revalidating block device size on every open even for devices with partition scan disabled. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/kmemleak.c')
0 files changed, 0 insertions, 0 deletions