]> asedeno.scripts.mit.edu Git - linux.git/commit
md: perform async updates for metadata where possible.
authorNeilBrown <neilb@suse.com>
Fri, 4 Nov 2016 05:46:03 +0000 (16:46 +1100)
committerShaohua Li <shli@fb.com>
Mon, 7 Nov 2016 23:08:23 +0000 (15:08 -0800)
commit060b0689f5df7e87641c820a605c779149da33ef
tree712abb7179be07c99ed4bc408859622f5440eb6e
parent3fd880af4174d724d209a890101962b00d5d33d4
md: perform async updates for metadata where possible.

When adding devices to, or removing device from, an array we need to
update the metadata.  However we don't need to do it synchronously as
data integrity doesn't depend on these changes being recorded
instantly.  So avoid the synchronous call to md_update_sb and just set
a flag so that the thread will do it.

This can reduce the number of updates performed when lots of devices
are being added or removed.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c