From: NeilBrown Date: Thu, 24 Sep 2015 04:00:51 +0000 (+1000) Subject: md: wait for pending superblock updates before switching to read-only X-Git-Tag: omap-for-v4.4/cleanup-pt1~7^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88724bfa68be792c1487d759e87568c36ac1a1cc;p=pandora-kernel.git 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 Signed-off-by: NeilBrown --- Reading git-diff-tree failed