Files
linux/drivers
NeilBrown 459aad50a5 md: fix deadlock error in recent patch.
commit d47c8ad261 upstream.

A recent patch aimed to cause md_write_start() to fail (rather than
block) when the mddev was suspending, so as to avoid deadlocks.
Unfortunately the test in wait_event() was wrong, and it didn't change
behaviour at all.

We wait_event() must wait until the metadata is written OR the array is
suspending.

Fixes: cc27b0c78c ("md: fix deadlock between mddev_suspend() and md_write_start()")
Reported-by: Xiao Ni <xni@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-30 08:40:47 +00:00
..
2017-11-03 09:02:30 -07:00
2017-11-03 09:02:30 -07:00
2017-08-29 13:46:35 +02:00
2017-11-03 09:02:30 -07:00