From: Shaohua Li Date: Tue, 15 Apr 2014 01:12:54 +0000 (+0800) Subject: raid5: fix a race of stripe count check X-Git-Tag: omap-for-v3.16/pm-signed~96^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7a6d35e463caacab08ca0333bdec5b8bdce8bbb;p=pandora-kernel.git raid5: fix a race of stripe count check I hit another BUG_ON with e240c1839d11152b0355442. In __get_priority_stripe(), stripe count equals to 0 initially. Between atomic_inc and BUG_ON, get_active_stripe() finds the stripe. So the stripe count isn't 1 any more. V2: keeps the BUG_ON suggested by Neil. Signed-off-by: Shaohua Li Signed-off-by: NeilBrown --- Reading git-diff-tree failed