linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "fs: use RCU read side protection in d_validate" broken
@ 2010-11-15  5:11 Nick Piggin
  2010-11-15  5:32 ` Nick Piggin
  2010-11-15 21:09 ` Christoph Hellwig
  0 siblings, 2 replies; 6+ messages in thread
From: Nick Piggin @ 2010-11-15  5:11 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Christoph Hellwig, Al Viro, linux-fsdevel

This patch is totally broken. You can't just dget() a dentry with
nothing but RCU critical section open.

The patch in my tree this is claimed to be split out of, at least
attemptet to do some locking, I don't know why that was stripped
out. But I didn't get that quite right myself at which point I
decided to just forget about it entirely.

Christoph, why did you think such a patch is worth getting merged, btw?
I saw no hint of a justification in your changelog.  I mean, in my tree
at least there was a _rationale_ that dcache_lock is going away and this
marginally made the locking simpler. But it doesn't make sense in the
current tree, even if the merged patch was _not_ buggy -- what were you
trying to do, make ncpfs's readdir go really fast?

Breaking things out when they make sense and stand as patches on their
own. That is very important. When they do _not_ make sense on their own,
then that is when they do not make sense to be broken out and merged
ahead of their series.

Linus, I cooked up a fix for it, but decided it's stupid to bother with
any complexity here. Please revert
3825bdb7ed920845961f32f364454bee5f469abb

If I end up wanting it again for dcache series, I can do it with proper
locking and proper justification.

Thanks,
Nick


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

end of thread, other threads:[~2010-11-15 23:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-15  5:11 Patch "fs: use RCU read side protection in d_validate" broken Nick Piggin
2010-11-15  5:32 ` Nick Piggin
2010-11-15 21:16   ` Christoph Hellwig
2010-11-15 23:06     ` Nick Piggin
2010-11-15 21:09 ` Christoph Hellwig
2010-11-15 22:51   ` Nick Piggin

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