From: Trond Myklebust Subject: Re: question on sk_sem within svc_sendto Date: Wed, 30 Apr 2003 20:02:43 +0200 Sender: nfs-admin@lists.sourceforge.net Message-ID: <16048.4035.771425.199589@charged.uio.no> References: Reply-To: trond.myklebust@fys.uio.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Trond Myklebust" , Return-path: Received: from pat.uio.no ([129.240.130.16]) by sc8-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 19Avus-0000AZ-00 for ; Wed, 30 Apr 2003 11:02:50 -0700 To: "Wendy Cheng" In-Reply-To: Errors-To: nfs-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Unsubscribe: , List-Archive: >>>>> " " == Wendy Cheng writes: > This makes sense (for me) in TCP case but how about UDP ? Does > the 2.5.x kernel send multiple NFS UDP packets within one reply > (for one single request) ? When using MSG_MORE in order to aggregate the data, you need to ensure that only your thread is accessing that socket. If not, another nfsd thread may corrupt your request by injecting its payload. So yes, in 2.5.x the semaphore is also needed for UDP. Cheers, Trond ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs