]> git.baikalelectronics.ru Git - kernel.git/commit
md: export 'frozen' resync state through sysfs
authorNeilBrown <neilb@suse.de>
Mon, 25 May 2009 23:41:17 +0000 (09:41 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 25 May 2009 23:41:17 +0000 (09:41 +1000)
commit07c39656bd4a691ac3c757a0970511aa40591260
tree7fc4c8ab5ea14df5e544e740ec3154b707766a08
parentc0b93aafd5c457516b91598c39b63b591ffd280f
md: export 'frozen' resync state through sysfs

The md resync engine has a 'frozen' state which ensures that
no resync/recovery.  This is used to avoid races.

Export this state through the 'sync_action' sysfs attribute
so that user-space can benefit and also avoid some races.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c