diff options
| author | NeilBrown <[email protected]> | 2015-09-24 04:00:51 +0000 |
|---|---|---|
| committer | NeilBrown <[email protected]> | 2015-10-02 07:23:43 +0000 |
| commit | 88724bfa68be792c1487d759e87568c36ac1a1cc (patch) | |
| tree | 12cf787a5922610396529d90ae82ccaf223a57d9 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
| parent | Merge branch 'for-4.3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
| download | kernel-88724bfa68be792c1487d759e87568c36ac1a1cc.tar.gz kernel-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 <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions
