diff options
author | 2017-10-05 16:23:16 +1100 | |
---|---|---|
committer | 2017-10-05 10:09:22 -0700 | |
commit | d47c8ad261f787af22a220ffcc2d07afba809223 (patch) | |
tree | 4f943cc91af125c4326526b88b9240a9adc00dae /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 4.14-rc3 (diff) | |
download | linux-rng-d47c8ad261f787af22a220ffcc2d07afba809223.tar.xz linux-rng-d47c8ad261f787af22a220ffcc2d07afba809223.zip |
md: fix deadlock error in recent patch.
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: cc27b0c78c79 ("md: fix deadlock between mddev_suspend() and md_write_start()")
Cc: stable@vger.kernel.org
Reported-by: Xiao Ni <xni@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions