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)
commitc75921a72a7c4bb73a5e09a697a672722e5543f1
treeed46f37241cdc860ffc691f6d71159333c434a83
parentc7eea6f7adca4501d2c2db7f0f7c9dc88efac95e
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