Skip to contentSkip to conversation

dm: sparse: Annotate field with __rcu for checking

PATCH In review Paul E. McKenney 2 participants 3 messages Oct 28, 2014 – Oct 29, 2014 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 4/9 dm: sparse: Annotate field with __rcu for checking

And similarly for this one on both counts.

Thanx, Paul

----- Forwarded message from "Paul E. McKenney" <[email protected]> -----

Date: Tue, 28 Oct 2014 15:09:57 -0700
From: "Paul E. McKenney" <[email protected]>
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],
[email protected], [email protected], "Paul E. McKenney" <[email protected]>
Subject: [PATCH tip/core/rcu 4/9] dm: sparse: Annotate field with __rcu for checking
X-Mailer: git-send-email 1.8.1.5

From: Pranith Kumar <[email protected]>

Annotate the map field with __rcu since this is a rcu pointer which is checked by sparse.

---
 drivers/md/dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm.c +1 -1
index e7399362722e..3372b8378830 100644
@@ -140,7 +140,7 @@ struct mapped_device {
 	 * Use dm_get_live_table{_fast} or take suspend_lock for
 	 * dereference.
 	 */
-	struct dm_table *map;
+	struct dm_table __rcu *map;
 
 	struct list_head table_devices;
 	struct mutex table_devices_lock;
Signature · 6 lines
1.8.1.5


----- End forwarded message -----

----- End forwarded message -----
#1 lore raw
Quoted 1 line · Paul E. McKenney

And similarly for this one on both counts.

Yeap, I'll take it, thanks.

#2 lore raw
Quoted 6 lines · Mike Snitzer
Quoted 1 line · Paul E. McKenney

And similarly for this one on both counts.

Yeap, I'll take it, thanks.

Very good, I will drop both from my tree.

Thanx, Paul