Pranay Kr. Srivastava 4743f83990 ext4: Fix WARN_ON_ONCE in ext4_commit_super()
If there are racing calls to ext4_commit_super() it's possible for
another writeback of the superblock to result in the buffer being
marked with an error after we check if the buffer is marked as having
a write error and the buffer up-to-date flag is set again.  If that
happens mark_buffer_dirty() can end up throwing a WARN_ON_ONCE.

Fix this by moving this check to write before we call
write_buffer_dirty(), and keeping the buffer locked during this whole
sequence.

Signed-off-by: Pranay Kr. Srivastava <pranjas@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2016-07-04 10:24:52 -04:00
..
2016-03-31 00:30:15 -04:00
2015-04-02 23:47:42 -04:00
2016-01-27 20:35:55 +08:00
2016-01-27 20:35:55 +08:00
2016-01-27 20:35:55 +08:00
2016-05-26 19:34:26 -07:00
2015-04-02 23:47:42 -04:00
2016-05-13 00:44:16 -04:00
2016-03-09 23:49:05 -05:00
2016-05-05 22:09:49 -04:00
2016-02-22 22:35:22 -05:00