Re: [PATCH 13/13] sunrpc: use SKB fragment destructors to delay completion until page is released by network stack.
From: Trond Myklebust <hidden>
Date: 2011-07-22 18:39:16
Also in:
linux-nfs
On Fri, 2011-07-22 at 14:17 +0100, Ian Campbell wrote:
This prevents an issue where an ACK is delayed, a retransmit is queued (either at the RPC or TCP level) and the ACK arrives before the retransmission hits the wire. If this happens to an NFS WRITE RPC then the write() system call completes and the userspace process can continue, potentially modifying data referenced by the retransmission before the retransmission occurs. Signed-off-by: Ian Campbell <redacted> Cc: Trond Myklebust <redacted> Cc: "David S. Miller" <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> Cc: Neil Brown <redacted> Cc: "J. Bruce Fields" <redacted> Cc: linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [since v1: Push down from NFS layer into RPM layer ] --- include/linux/sunrpc/xdr.h | 2 ++ include/linux/sunrpc/xprt.h | 5 ++++- net/sunrpc/clnt.c | 27 ++++++++++++++++++++++----- net/sunrpc/svcsock.c | 2 +- net/sunrpc/xprt.c | 13 +++++++++++++ net/sunrpc/xprtsock.c | 2 +- 6 files changed, 43 insertions(+), 8 deletions(-)
This looks good to me. Thanks, Ian! Acked-by: Trond Myklebust <redacted> -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org www.netapp.com -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html