Skip to contentSkip to conversation

dm mpath: enable DM_TARGET_ATOMIC_WRITES

PATCH In review John Garry 2 participants 3 messages Oct 28, 2025 – Nov 10, 2025 Device mapper

lore
Share & tools
lore

John Garry

author
#0 lore raw

PATCH 1/1 dm mpath: enable DM_TARGET_ATOMIC_WRITES

Both the bio- and rq-based paths have no problem supporting REQ_ATOMIC, so enable DM_TARGET_ATOMIC_WRITES.

drivers/md/dm-mpath.c +1 -1
index aaf4a0a4b0ebb..5dd90b2cdb9bb 100644
@@ -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,
Signature · 1 line
2.43.5
author
#1 lore raw
Quoted 4 lines · John Garry

Both the bio- and rq-based paths have no problem supporting REQ_ATOMIC, so enable DM_TARGET_ATOMIC_WRITES.

This is just a friendly reminder on this change. It has not been picked up AFAICS.

Cheers,
John

Quoted 14 lines
drivers/md/dm-mpath.c +1 -1
index aaf4a0a4b0ebb..5dd90b2cdb9bb 100644
@@ -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,
maintainer
#2 lore raw
Quoted 11 lines · John Garry
Quoted 4 lines · John Garry

Both the bio- and rq-based paths have no problem supporting REQ_ATOMIC, so enable DM_TARGET_ATOMIC_WRITES.

This is just a friendly reminder on this change. It has not been picked up AFAICS.

Cheers,
John

Hi

I've accepted this patch. Sorry for skipping it in my email.

Mikulas

Quoted 14 lines
Quoted 13 lines
drivers/md/dm-mpath.c +1 -1
index aaf4a0a4b0ebb..5dd90b2cdb9bb 100644
@@ -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,