All of lore.kernel.org
 help / color / mirror / Atom feed
* Q: bugs in generic_forget_inode()?
@ 2004-09-06 12:06 Kirill Korotaev
  2004-09-06 19:35 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Kirill Korotaev @ 2004-09-06 12:06 UTC (permalink / raw)
  To: linux-kernel, akpm, torvalds

Hello,

1. I found that generic_forget_inode() calls write_inode_now() dropping 
inode_lock and destroys inode after that. The problem is that 
write_inode_now() can sleep and during this sleep someone can find inode 
in the hash, w/o I_FREEING state and with i_count = 0.

If such inode will be iget'ed, then it will be iput'ed once more later 
messing with the current iput(). So the inode can be cleared and 
destroyed twice.

2. Why there is no wake_up_inode() in generic_forget_inode() like in 
generic_delete_inode()? Looks like it is missing...

is it bugs in generic_forget_inode()?

Kirill


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

end of thread, other threads:[~2004-09-10  9:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-06 12:06 Q: bugs in generic_forget_inode()? Kirill Korotaev
2004-09-06 19:35 ` Andrew Morton
2004-09-10  9:04   ` Kirill Korotaev
2004-09-10  9:11     ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.