[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080328205613.GA24812@2ka.mipt.ru>
Date: Fri, 28 Mar 2008 23:56:13 +0300
From: Evgeniy Polyakov <johnpol@....mipt.ru>
To: David Miller <davem@...emloft.net>
Cc: axboe@...nel.dk, netdev@...r.kernel.org
Subject: Re: Network/block layer race.
Hi.
On Fri, Mar 28, 2008 at 01:40:53PM -0700, David Miller (davem@...emloft.net) wrote:
> If content protection is desired, higher level things are needed.
> For example, SAMBA only uses sendfile() if the remote client
> has an OP lock on the file in question.
What I propose is to inform sender about when page is transmitted and
received on the other side via implicit acks, which are provided already
by tcp, but is not provided to higher layer.
We can use it for sendfile and thus do not require higher
layer 'distributed' locks, i.e. sync some state between hosts to inform
that data was succesfully received. Patch would be minimal, just export
sock_wfree() and setup different skb destructor if sk_sock_data is
provided, that will allow for special users (like the same samba) to use
->sendpage() path too (with some changes in the code of course, but that
is worth whole page copying).
--
Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists