Re: [RFC PATCH] net: add dataref destructor to sk_buff

Gregory Haskins
2009-11-14T02:27:58Z

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

Herbert Xu wrote:
> On Fri, Nov 13, 2009 at 08:33:35PM -0500, Gregory Haskins wrote:
>> Well, not with respect to the overall protocol, of course not. But with
>> respect to the buffer in question, it _has_ to be. Or am I missing
>> something?
>
> sendfile() has never guaranteed that the kernel is finished with
> the underlying pages when it returns.
>
> Cheers,

Clearly there must be _some_ mechanism to synchronize (e.g.
flush/barrier) though, right? Otherwise, that interface would seem to
be quite prone to races and would likely be unusable. So what does
said flush use to know when the buffer is free?

-Greg

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 267 bytes --]