public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* locking rules for ->dirty_inode()
@ 2002-09-20 15:00 Nikita Danilov
  2002-09-20 15:52 ` Andrew Morton
  2002-09-20 22:41 ` Andrew Morton
  0 siblings, 2 replies; 9+ messages in thread
From: Nikita Danilov @ 2002-09-20 15:00 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Alexander Viro, Andrew Morton

Hello,

Documentation/filesystems/Locking states that all super operations may
block, but __set_page_dirty_buffers() calls

   __mark_inode_dirty()->s_op->dirty_inode()

under mapping->private_lock spin lock. This seems strange, because file
systems' ->dirty_inode() assume that they are allowed to block. For
example, ext3_dirty_inode() allocates memory in

   ext3_journal_start()->journal_start()->new_handle()->...

Nikita.


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

end of thread, other threads:[~2002-09-23 19:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-20 15:00 locking rules for ->dirty_inode() Nikita Danilov
2002-09-20 15:52 ` Andrew Morton
2002-09-20 16:32   ` Nikita Danilov
2002-09-20 16:47     ` Andrew Morton
2002-09-20 17:32       ` Nikita Danilov
2002-09-20 18:21         ` Hans Reiser
2002-09-20 22:41 ` Andrew Morton
2002-09-23 16:32   ` Nikita Danilov
2002-09-23 16:42     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox