* [GIT PULL REQUEST] one md BUG-fix for 3.15-rc
@ 2014-04-17 7:12 NeilBrown
0 siblings, 0 replies; only message in thread
From: NeilBrown @ 2014-04-17 7:12 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Shaohua Li, Fengguang Wu, linux RAID, lkml
[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]
The following changes since commit e240c1839d11152b0355442f8ac6d2d2d921be36:
raid5: get_active_stripe avoids device_lock (2014-04-09 14:42:42 +1000)
are available in the git repository at:
git://neil.brown.name/md tags/3.15-fixes
for you to fetch changes up to c7a6d35e463caacab08ca0333bdec5b8bdce8bbb:
raid5: fix a race of stripe count check (2014-04-17 17:05:28 +1000)
----------------------------------------------------------------
One BUG fix for md for recent commit
----------------------------------------------------------------
Shaohua Li (1):
raid5: fix a race of stripe count check
drivers/md/raid5.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 25247a852912..ad1b9bea446e 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -4370,8 +4370,7 @@ static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group)
sh->group = NULL;
}
list_del_init(&sh->lru);
- atomic_inc(&sh->count);
- BUG_ON(atomic_read(&sh->count) != 1);
+ BUG_ON(atomic_inc_return(&sh->count) != 1);
return sh;
}
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-17 7:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-17 7:12 [GIT PULL REQUEST] one md BUG-fix for 3.15-rc NeilBrown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).