> On Friday 03 August 2007, Miklos Szeredi wrote:
> > From: Miklos Szeredi <[email protected]>
> >
> > Make lifetime of 'struct fuse_file' independent from 'struct file' by
> > adding a reference counter and destructor.
>
> What about using krefs to implement that?
Thanks for the suggestion. I'm aware of kref, but I don't see the
huge advantage over using the raw atomic interface.
> This will also fix the missing smp_barriers,
Why are the barriers needed? The documentation doesn't say anything
about that.
> is very simple, saves code, makes your life easier and is a well
> known known kernel infrastructure :-)
I think it saves one line, and adds another, for a total of zero lines
saved ;)
Thanks,
Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]