Thread (2 messages) 2 messages, 2 authors, 2014-09-28

Re: [PATCH] dm: sparse: Annotate field with __rcu for checking

From: Paul E. McKenney <hidden>
Date: 2014-09-28 07:34:17
Also in: dm-devel, lkml

On Thu, Sep 25, 2014 at 02:50:43PM -0400, Pranith Kumar wrote:
Annotate the map field with __rcu since this is a rcu pointer which is checked
by sparse.

Signed-off-by: Pranith Kumar <redacted>
Queued them both, thank you!

Josh, given this change, are you OK with my applying your Reviewed-by
to the RCU_INIT_POINTER() patch?

							Thanx, Paul
quoted hunk ↗ jump to hunk
---
 drivers/md/dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 32b958d..746411b 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -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;

 	unsigned long flags;
-- 
2.1.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help