Re: [PATCH 2/7] revoke: add f_light flag for struct file

From: Pekka Enberg
Date: Fri Mar 09 2007 - 06:58:26 EST


On 3/9/07, Eric Dumazet <dada1@xxxxxxxxxxxxx> wrote:
> Then just drop the fget_light() 'optimisation' and always take a reference
> (atomic on f_count) regardless of single-thread or not. Instead of dirtying
> f_light, just do the straightforward thing and be with it.

On 3/9/07, Pekka Enberg <penberg@xxxxxxxxxxxxxx> wrote:
That's what I did first but akpm thought it was "unfortunate." Hmm.. ;-)

Btw, what we can do is delay closing the actual revoked file until the
task terminates. This has the unfortunate side-effect that a task has
no way of freeing the resources now. But, I am beginning to think it's
not a big problem because the inode mapping will be zapped immediately
upon revoke anyway...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/