]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm writecache: don't split bios when overwriting contiguous cache content
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 26 May 2021 14:29:45 +0000 (10:29 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 1 Jun 2021 21:57:45 +0000 (17:57 -0400)
commit15fb41c6e1a5d76fe5c284369c36702b03b7d0a8
tree68edff302e2df372dd33c0055fe1e1a3655bf2f5
parente276a8f2b3492f23890a4b3fbd6ca879ed607033
dm writecache: don't split bios when overwriting contiguous cache content

If dm-writecache overwrites existing cached data, it splits the
incoming bio into many block-sized bios. The I/O scheduler does merge
these bios into one large request but this needless splitting and
merging causes performance degradation.

Fix this by avoiding bio splitting if the cache target area that is
being overwritten is contiguous.

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