提交 23c1a60e 编写于 作者: L Linus Torvalds

Merge tag '3.15-fixes' of git://neil.brown.name/md

Pull md bugfix from Neil Brown:
 "One BUG fix for md for recent commit"

* tag '3.15-fixes' of git://neil.brown.name/md:
  raid5: fix a race of stripe count check
...@@ -4370,8 +4370,7 @@ static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group) ...@@ -4370,8 +4370,7 @@ static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group)
sh->group = NULL; sh->group = NULL;
} }
list_del_init(&sh->lru); list_del_init(&sh->lru);
atomic_inc(&sh->count); BUG_ON(atomic_inc_return(&sh->count) != 1);
BUG_ON(atomic_read(&sh->count) != 1);
return sh; return sh;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册