From: NeilBrown Date: Thu, 21 May 2015 02:00:47 +0000 (+1000) Subject: md/raid5: duplicate some more handle_stripe_clean_event code in break_stripe_batch_list X-Git-Tag: omap-for-v4.3/legacy-v2-signed~292^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb642b92c267beeefd352af9bc461eac93a7552c;p=pandora-kernel.git md/raid5: duplicate some more handle_stripe_clean_event code in break_stripe_batch_list break_stripe_batch list didn't clear head_sh->batch_head. This was probably a bug. Also clear all R5_Overlap flags and if any were cleared, wake up 'wait_for_overlap'. This isn't always necessary but the worst effect is a little extra checking for code that is waiting on wait_for_overlap. Also, don't use wake_up_nr() because that does the wrong thing if 'nr' is zero, and it number of flags cleared doesn't strongly correlate with the number of threads to wake. Signed-off-by: NeilBrown --- Reading git-diff-tree failed