Mark Tinguely 9a57fa8ee7 xfs: wait for the write the superblock on unmount
v2: Add the xfs_buf_lock to xfs_quiesce_attr().
    Add explaination why xfs_buf_lock() is used to wait for write.

xfs_wait_buftarg() does not wait for the completion of the write of the
uncached superblock. This write can race with the shutdown of the log
and causes a panic if the write does not win the race.

During the log write, xfsaild_push() will lock the buffer and set the
XBF_ASYNC flag. Because the XBF_FLAG is set, complete() is not performed
on the buffer's iowait entry, we cannot call xfs_buf_iowait() to wait
for the write to complete. The buffer's lock is held until the write is
complete, so we can block on a xfs_buf_lock() request to be notified
that the write is complete.

Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
2012-07-29 16:34:19 -05:00
..
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2011-07-25 15:03:13 -05:00
2012-05-14 16:21:00 -05:00
2011-07-13 13:43:48 +02:00
2012-05-14 16:20:56 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2011-03-07 10:09:35 +11:00
2012-05-29 23:28:33 -04:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2012-07-29 16:23:51 -05:00
2012-07-29 16:23:51 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:00 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:00 -05:00
2011-08-12 16:21:35 -05:00
2010-12-16 16:05:51 -06:00
2012-07-22 10:38:32 -05:00
2011-08-12 16:21:35 -05:00
2012-06-21 14:22:27 -05:00
2012-06-21 14:22:27 -05:00
2012-06-21 13:49:39 -05:00
2012-05-14 16:21:00 -05:00
2012-07-29 16:23:51 -05:00
2012-03-13 17:01:15 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:00 -05:00
2012-07-22 10:38:32 -05:00
2012-01-03 22:55:00 -05:00
2011-08-12 16:21:35 -05:00