]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
bcache: cached_dev_free needs to put the sb page
authorLiang Chen <liangchen.linux@gmail.com>
Thu, 23 Jan 2020 17:01:26 +0000 (01:01 +0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 24 Feb 2020 15:20:05 +0000 (16:20 +0100)
commitdb4802f8cc199ba5f41b4ae0acfab440ea99ca22
tree0866efab102d14135c4af8d3aeb2c3daab1fae0e
parentb28165cc8a8e1c2ba64ce8c8b315250413f241ac
bcache: cached_dev_free needs to put the sb page

BugLink: https://bugs.launchpad.net/bugs/1864488
[ Upstream commit e8547d42095e58bee658f00fef8e33d2a185c927 ]

Same as cache device, the buffer page needs to be put while
freeing cached_dev.  Otherwise a page would be leaked every
time a cached_dev is stopped.

Signed-off-by: Liang Chen <liangchen.linux@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/md/bcache/super.c