All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] md/bitmap: fix list_entry_rcu usage.
@ 2015-03-24 10:31 Patrick Marlier
  0 siblings, 0 replies; only message in thread
From: Patrick Marlier @ 2015-03-24 10:31 UTC (permalink / raw)
  To: linux-kernel

Signed-off-by: Patrick Marlier <patrick.marlier@gmail.com>
---
  drivers/md/bitmap.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index 3a57679..ed00e46 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -181,7 +181,7 @@ static struct md_rdev *next_active_rdev(struct 
md_rdev *rdev, struct mddev *mdde
     rcu_read_lock();
     if (rdev == NULL)
         /* start at the beginning */
-       rdev = list_entry_rcu(&mddev->disks, struct md_rdev, same_set);
+       rdev = list_entry_rcu(mddev->disks.next, struct md_rdev, same_set);
     else {
         /* release the previous rdev and start from there. */
         rdev_dec_pending(rdev, mddev);
-- 
2.1.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-24 10:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-24 10:31 [PATCH 3/3] md/bitmap: fix list_entry_rcu usage Patrick Marlier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.