Re: [patch 12/16] fix race between writeback and unlink

Linus Torvalds (torvalds@transmeta.com)
Mon, 3 Jun 2002 15:19:44 -0700 (PDT)


On 3 Jun 2002, Chris Mason wrote:
>
> Or am I missing something?

No. I think that in the long run we really would want all of the writeback
preallocation should happen in the "struct file", not in "struct inode".
And they should be released at file close ("release()"), not at iput()
time.

I _think_ that right now nfsd doesn't cache file opens (only inodes), so
this could be a performance issue for nfsd, but it might be possible to
change how nfsd acts. And it would be a _lot_ cleaner to do it at the file
level.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/