]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: xfs_quiesce_attr() should quiesce the log like unmount
authorDave Chinner <dchinner@redhat.com>
Mon, 8 Oct 2012 10:56:08 +0000 (21:56 +1100)
committerBen Myers <bpm@sgi.com>
Wed, 17 Oct 2012 18:39:14 +0000 (13:39 -0500)
commit5ada5827153365e8e7b1653d2a41654026c3fac1
treeed46f37241cdc860ffc691f6d71159333c434a83
parent31f6550fae39dc61f8dc05a4fba7da1e38267f2c
xfs: xfs_quiesce_attr() should quiesce the log like unmount

xfs_quiesce_attr() is supposed to leave the log empty with an
unmount record written. Right now it does not wait for the AIL to be
emptied before writing the unmount record, not does it wait for
metadata IO completion, either. Fix it to use the same method and
code as xfs_log_unmount().

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_log.c
fs/xfs/xfs_log.h
fs/xfs/xfs_super.c