From patchwork Tue Feb 8 23:38:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jvrao X-Patchwork-Id: 542441 X-Patchwork-Delegate: ericvh@gmail.com Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p18NdYro027768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 8 Feb 2011 23:39:56 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.74) (envelope-from ) id 1Pmx9P-0004qd-9E; Tue, 08 Feb 2011 23:39:15 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.74) (envelope-from ) id 1Pmx9N-0004qI-RT for v9fs-developer@lists.sourceforge.net; Tue, 08 Feb 2011 23:39:13 +0000 X-ACL-Warn: Received: from e35.co.us.ibm.com ([32.97.110.153]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.74) id 1Pmx9L-0006Sn-Db for v9fs-developer@lists.sourceforge.net; Tue, 08 Feb 2011 23:39:13 +0000 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e35.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p18NOqc4026727 for ; Tue, 8 Feb 2011 16:24:52 -0700 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p18Nd1Qf118984 for ; Tue, 8 Feb 2011 16:39:01 -0700 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p18Nd1p7008644 for ; Tue, 8 Feb 2011 16:39:01 -0700 Received: from [127.0.0.1] (IBM-2AECC81F76A.beaverton.ibm.com [9.47.29.64]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p18NcxdO008583; Tue, 8 Feb 2011 16:39:00 -0700 Message-ID: <4D51D413.7030109@linux.vnet.ibm.com> Date: Tue, 08 Feb 2011 15:38:59 -0800 From: "Venkateswararao Jujjuri (JV)" Organization: IBM User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: "Aneesh Kumar K. V" References: <1297146866-17187-1-git-send-email-jvrao@linux.vnet.ibm.com> <1297146866-17187-4-git-send-email-jvrao@linux.vnet.ibm.com> <877hdbhvw7.fsf@linux.vnet.ibm.com> <4D50E747.3030006@linux.vnet.ibm.com> <8739nyj4rt.fsf@linux.vnet.ibm.com> <4D517B53.30608@linux.vnet.ibm.com> <87d3n2qufz.fsf@linux.vnet.ibm.com> <87aai6qt6e.fsf@linux.vnet.ibm.com> <4D518DF2.4020400@linux.vnet.ibm.com> <871v3iqo7o.fsf@linux.vnet.ibm.com> In-Reply-To: <871v3iqo7o.fsf@linux.vnet.ibm.com> X-Enigmail-Version: 1.1.1 X-Spam-Score: -0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1Pmx9L-0006Sn-Db Cc: V9FS Developers Subject: Re: [V9fs-developer] [PATCH 4/7] [net/9p] Add gup/zero_copy support to VirtIO transport layer. X-BeenThere: v9fs-developer@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: v9fs-developer-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 08 Feb 2011 23:40:02 +0000 (UTC) diff --git a/net/9p/client.c b/net/9p/client.c index a848bca..c7e79c3 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -1263,6 +1263,24 @@ p9_client_read(struct p9_fid *fid, char *data, char __use clnt = fid->clnt; total = 0; +// JV's test patch +{ +char *addr; +if (udata) + addr = udata; +else + addr = data; + + if (segment_eq(get_fs(), KERNEL_DS)) { + printk("Kernel buffer: %p data:%p udata:%p \n",addr,data,udata); + if (udata) + dump_stack(); + } else { + printk("User buffer: %p data:%p udata:%p \n",addr,data,udata); + } +} + + rsize = fid->iounit; if (!rsize || rsize > clnt->msize-P9_IOHDRSZ) rsize = clnt->msize - P9_IOHDRSZ;