]> git.ipfire.org Git - thirdparty/linux.git/commit
dm: optimize REQ_PREFLUSH with data when using the linear target
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 15 Sep 2025 15:42:45 +0000 (17:42 +0200)
committerMikulas Patocka <mpatocka@redhat.com>
Thu, 18 Sep 2025 10:58:02 +0000 (12:58 +0200)
commit2b1c6d7a890aeaeabfeabd1cef5a4808043dc1a4
treeb9990efef1c283b9e33916b34aa75c2761b65e7c
parent4466dd3d719cca113308e8ae539adf7b3d68c985
dm: optimize REQ_PREFLUSH with data when using the linear target

If the table has only linear targets and there is just one underlying
device, we can optimize REQ_PREFLUSH with data - we don't have to split
it to two bios - a flush and a write. We can pass it to the linear target
directly.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Tested-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
drivers/md/dm-core.h
drivers/md/dm.c