From: Trond Myklebust Subject: nfs3_proc_write() Date: Thu, 3 Jul 2003 13:49:15 +0200 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <16132.6203.796332.727898@charged.uio.no> References: <3F040ECD.7070108@shaolinmicro.com> <16132.5105.444892.610300@charged.uio.no> Reply-To: trond.myklebust@fys.uio.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from pat.uio.no ([129.240.130.16]:34701 "EHLO pat.uio.no") by vger.kernel.org with ESMTP id S265153AbTGCLe7 (ORCPT ); Thu, 3 Jul 2003 07:34:59 -0400 To: David Chow In-Reply-To: <16132.5105.444892.610300@charged.uio.no> List-Id: linux-fsdevel.vger.kernel.org >>>>> " " == Trond Myklebust writes: > You don't want to be writing wsize bytes unless wsize <= > PAGE_SIZE. My guess is that this is why you are seeing the > exception. Actually, thinking about it one more time... You've just thrown the file offset as the argument to ->write() instead of setting the offset relative to the start of the page, haven't you? That will *seriously* confuse the RPC sendmsg() code (which is where you say the Oops occurs). It just wants to know at what offset within the page you specified it is supposed to start sending data... Cheers, Trond