]> git.baikalelectronics.ru Git - kernel.git/commit
dm writecache: fix writing beyond end of underlying device when shrinking
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 9 Feb 2021 15:56:20 +0000 (10:56 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 9 Feb 2021 22:09:02 +0000 (17:09 -0500)
commitd8d459c60fa8ee4adb955073119950c2b8f101aa
tree5c945f2ed7f0734006782150a49bf1aa89f41fe2
parent759b3f1129bec2a2c33ce8b0fbf0b56455a67355
dm writecache: fix writing beyond end of underlying device when shrinking

Do not attempt to write any data beyond the end of the underlying data
device while shrinking it.

The DM writecache device must be suspended when the underlying data
device is shrunk.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c