Skip to content
Commit 669cc7ba authored by NeilBrown's avatar NeilBrown
Browse files

md/raid1: clean up request counts properly in close_sync()



If there are outstanding writes when close_sync is called,
the change to ->start_next_window might cause them to
decrement the wrong counter when they complete.  Fix this
by merging the two counters into the one that will be decremented.

Having an incorrect value in a counter can cause raise_barrier()
to hangs, so this is suitable for -stable.

Fixes: 79ef3a8a
cc: stable@vger.kernel.org (v3.13+)
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent c6d119cf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment