Files
kernel_xiaomi_sm8250/include/linux
NeilBrown 9910f16af3 [PATCH] md: fix up some rdev rcu locking in raid5/6
There is this "FIXME" comment with a typo in it!!  that been annoying me for
days, so I just had to remove it.

conf->disks[i].rdev should only be accessed if
  - we know we hold a reference or
  - the mddev->reconfig_sem is down or
  - we have a rcu_readlock

handle_stripe was referencing rdev in three places without any of these.  For
the first two, get an rcu_readlock.  For the last, the same access
(md_sync_acct call) is made a little later after the rdev has been claimed
under and rcu_readlock, if R5_Syncio is set.  So just use that access...
However R5_Syncio isn't really needed as the 'syncing' variable contains the
same information.  So use that instead.

Issues, comment, and fix are identical in raid5 and raid6.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-06 08:34:04 -08:00
..
2005-11-28 21:00:29 +00:00
2006-01-03 13:11:06 -08:00
2005-11-22 19:39:30 -08:00
2006-01-06 08:33:54 -08:00
2005-12-15 02:20:15 +01:00
2006-01-06 08:33:53 -08:00
2006-01-06 08:33:59 -08:00
2006-01-06 08:33:29 -08:00
2005-12-13 02:30:04 -05:00
2005-12-12 08:57:43 -08:00
2005-11-28 14:42:23 -08:00
2006-01-06 08:33:20 -08:00
2006-01-03 13:11:15 -08:00
2005-12-19 23:12:09 -05:00
2006-01-06 08:33:29 -08:00
2006-01-06 08:33:56 -08:00
2006-01-06 08:33:27 -08:00
2006-01-03 14:06:50 -08:00
2005-12-12 08:57:42 -08:00