linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1]ext4: Fix for WARN_ON_ONCE when marking buffer dirty
@ 2016-06-30 11:12 Pranay Kr. Srivastava
  2016-06-30 11:12 ` [PATCH 1/1]ext4: Fix " Pranay Kr. Srivastava
  0 siblings, 1 reply; 5+ messages in thread
From: Pranay Kr. Srivastava @ 2016-06-30 11:12 UTC (permalink / raw)
  To: tytso, adilger.kernel, linux-ext4, linux-kernel; +Cc: Pranay Kr. Srivastava


1) Fix WARN_ON_ONCE when marking buffer dirty
   it's possible that a writeback for the super block
   buffer head is triggered after setting the buffer
   uptodate on a buffer write_io_error.

   If however there's an error while writing the buffer
   head then the buffer is cleared from being uptodate.

   If the buffer uptodate is not set while calling
   mark_buffer_dirty, it throws a WARN_ON_ONCE.
   This patch fixes it by locking the buffer while marking
   the buffer uptodate and then marking it dirty while holding
   the buffer head lock.


Pranay Kr. Srivastava (5):
   Fix WARN_ON_ONCE when marking buffer dirty

 fs/ext4/super.c     |  30 +++++-----
 1 files changed, 16 insertions(+), 14 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-05  3:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-30 11:12 [PATCH 0/1]ext4: Fix for WARN_ON_ONCE when marking buffer dirty Pranay Kr. Srivastava
2016-06-30 11:12 ` [PATCH 1/1]ext4: Fix " Pranay Kr. Srivastava
2016-07-04  7:09   ` Pranay Srivastava
2016-07-04 14:29   ` Theodore Ts'o
2016-07-05  3:27     ` Pranay Srivastava

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).