Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 70f589ce authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Greg Kroah-Hartman
Browse files

xfs: fix buffer flushing during unmount


commit 87c7bec7 upstream.

The code to flush buffers in the umount code is a bit iffy: we first
flush all delwri buffers out, but then might be able to queue up a
new one when logging the sb counts.  On a normal shutdown that one
would get flushed out when doing the synchronous superblock write in
xfs_unmountfs_writesb, but we skip that one if the filesystem has
been shut down.

Fix this by moving the delwri list flushing until just before unmounting
the log, and while we're at it also remove the superflous delwri list
and buffer lru flusing for the rt and log device that can never have
cached or delwri buffers.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reported-by: default avatarAmit Sahrawat <amit.sahrawat83@gmail.com>
Tested-by: default avatarAmit Sahrawat <amit.sahrawat83@gmail.com>
Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5b9d69bc
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment