]> git.baikalelectronics.ru Git - kernel.git/commit
ext3/jbd: Avoid WARN() messages when failing to write the superblock
authorDarrick J. Wong <djwong@us.ibm.com>
Mon, 4 Oct 2010 19:35:05 +0000 (12:35 -0700)
committerJan Kara <jack@suse.cz>
Wed, 27 Oct 2010 23:30:02 +0000 (01:30 +0200)
commitf50916ac48a27c1e36865df081bc87ea935a60bc
tree3b243584ee48752096b110c04ecd803e285325ae
parent1bea3993d17e6816e9d377625e751c53a92a6587
ext3/jbd: Avoid WARN() messages when failing to write the superblock

This fixes a WARN backtrace in mark_buffer_dirty() that occurs during unmount
when the underlying block device is removed.  This bug has been seen on System
Z when removing all paths from a multipath-backed ext3 mount; on System P when
injecting enough PCI EEH errors to make the SCSI controller go offline; and
similar warnings have been seen (and patched) with ext2/ext4.

The super block update from a previous operation has marked the buffer as in
error, and the flag has to be cleared before doing the update. Similar changes
have been made to ext4 by commit 6ab3782c64664744ec79723fd09d7cd406b176ff.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/super.c
fs/jbd/journal.c