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 aaf4a0a..5dd90b2 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,