linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* i_flags locking
@ 2007-06-25 16:42 Jan Kara
  2007-06-30  9:30 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kara @ 2007-06-25 16:42 UTC (permalink / raw)
  To: linux-fsdevel

  Hi,

  I came across the following question: What is the proper locking for
using i_flags? I've noticed i_flags are read freely without any lock.
The modifications I've seen e.g. in ext3 were done under i_mutex. Is this
right?
  BTW it means that when checking i_flags we can see intermediate states
in ext3_set_inode_flags() when all flags are cleared and the proper flags
are not yet set, right?
  I'm currently playing with something like inotify for subtree and I'd
need to modify i_flags but using i_mutex unpleasantly interferes with
directory locking...

								Honza
-- 
Jan Kara <jack@suse.cz>
SuSE CR Labs

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

end of thread, other threads:[~2007-06-30  9:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-25 16:42 i_flags locking Jan Kara
2007-06-30  9:30 ` Christoph Hellwig

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).