]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dm mpath: enable DM_TARGET_ATOMIC_WRITES
authorJohn Garry <john.g.garry@oracle.com>
Tue, 28 Oct 2025 15:08:05 +0000 (15:08 +0000)
committerMikulas Patocka <mpatocka@redhat.com>
Tue, 18 Nov 2025 17:24:26 +0000 (18:24 +0100)
Both the bio- and rq-based paths have no problem supporting REQ_ATOMIC,
so enable DM_TARGET_ATOMIC_WRITES.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-mpath.c

index aaf4a0a4b0ebb66fb5f2427d1f504c9a1b11502e..5dd90b2cdb9bb8eff0878caabc69620f0e33b23a 100644 (file)
@@ -2307,7 +2307,7 @@ static struct target_type multipath_target = {
        .name = "multipath",
        .version = {1, 15, 0},
        .features = DM_TARGET_SINGLETON | DM_TARGET_IMMUTABLE |
-                   DM_TARGET_PASSES_INTEGRITY,
+                   DM_TARGET_PASSES_INTEGRITY | DM_TARGET_ATOMIC_WRITES,
        .module = THIS_MODULE,
        .ctr = multipath_ctr,
        .dtr = multipath_dtr,