diff options
author | NeilBrown <neilb@suse.com> | 2015-09-24 14:00:51 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-10-02 17:23:43 +1000 |
commit | 88724bfa68be792c1487d759e87568c36ac1a1cc (patch) | |
tree | 12cf787a5922610396529d90ae82ccaf223a57d9 /drivers/gpio | |
parent | bcee19f424a0d8c26ecf2607b73c690802658b29 (diff) | |
download | linux-stable-88724bfa68be792c1487d759e87568c36ac1a1cc.tar.gz linux-stable-88724bfa68be792c1487d759e87568c36ac1a1cc.tar.bz2 linux-stable-88724bfa68be792c1487d759e87568c36ac1a1cc.zip |
md: wait for pending superblock updates before switching to read-only
If a superblock update is pending, wait for it to complete before
letting md_set_readonly() switch to readonly.
Otherwise we might lose important information about a device having
failed.
For external arrays, waiting for superblock updates can wait on
user-space, so in that case, just return an error.
Reported-and-tested-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions