]> git.baikalelectronics.ru Git - kernel.git/commit
dm writecache: fix performance degradation in ssd mode
authorMikulas Patocka <mpatocka@redhat.com>
Sat, 23 Jan 2021 14:19:56 +0000 (09:19 -0500)
committerMike Snitzer <snitzer@redhat.com>
Wed, 3 Feb 2021 15:10:05 +0000 (10:10 -0500)
commit0746fc7c760f9657a11a0ea6fe53a26709b5e616
tree571ea5b9d22f486c26c06a3d2641d704e20bc9ac
parent4df7d164f1a59090d6a8492c6f55c7484905726d
dm writecache: fix performance degradation in ssd mode

Fix a thinko in ssd_commit_superblock. region.count is in sectors, not
bytes. This bug doesn't corrupt data, but it causes performance
degradation.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Fixes: 1eae940b9d6f ("dm writecache: optimize superblock write")
Cc: stable@vger.kernel.org # v5.7+
Reported-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c