diff mbox

Fw: [PATCH tip/core/rcu 4/9] dm: sparse: Annotate field with __rcu for checking

Message ID 20141028234925.GB8321@linux.vnet.ibm.com (mailing list archive)
State Accepted, archived
Delegated to: Mike Snitzer
Headers show

Commit Message

Paul E. McKenney Oct. 28, 2014, 11:49 p.m. UTC
And similarly for this one on both counts.

						Thanx, Paul

----- Forwarded message from "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> -----

Date: Tue, 28 Oct 2014 15:09:57 -0700
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: mingo@kernel.org, laijs@cn.fujitsu.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, dvhart@linux.intel.com, fweisbec@gmail.com,
	oleg@redhat.com, bobby.prani@gmail.com, "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
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 <bobby.prani@gmail.com>

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

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---
 drivers/md/dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mike Snitzer Oct. 29, 2014, 12:25 a.m. UTC | #1
On Tue, Oct 28 2014 at  7:49pm -0400,
Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote:

> And similarly for this one on both counts.

Yeap, I'll take it, thanks.

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
Paul E. McKenney Oct. 29, 2014, 2:43 a.m. UTC | #2
On Tue, Oct 28, 2014 at 08:25:13PM -0400, Mike Snitzer wrote:
> On Tue, Oct 28 2014 at  7:49pm -0400,
> Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote:
> 
> > 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

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
diff mbox

Patch

diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index e7399362722e..3372b8378830 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;

 	struct list_head table_devices;
 	struct mutex table_devices_lock;