]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: shutdown xfs_sync_worker before the log
authorBen Myers <bpm@sgi.com>
Fri, 25 May 2012 20:45:36 +0000 (15:45 -0500)
committerBen Myers <bpm@sgi.com>
Thu, 21 Jun 2012 18:41:04 +0000 (13:41 -0500)
commita19160062a7d5301da66f17cd7e7879be0d7f4a0
treeae81aca1b23fbf1b369e84d426ed393956db0fae
parentd2bdcc124f93ca2b30e4bb6d0fc2e18d3add8191
xfs: shutdown xfs_sync_worker before the log

Revert commit 3f811d9, which uses the s_umount semaphore to provide
exclusion between xfs_sync_worker and unmount, in favor of shutting down
the sync worker before freeing the log in xfs_log_unmount.  This is a
cleaner way of resolving the race between xfs_sync_worker and unmount
than using s_umount.

Signed-off-by: Ben Myers <bpm@sgi.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_log.c
fs/xfs/xfs_sync.c