diff mbox

[V9fs-developer,4/7,net/9p] Add gup/zero_copy support to VirtIO transport layer.

Message ID 4D51D413.7030109@linux.vnet.ibm.com (mailing list archive)
State Accepted, archived
Delegated to: Eric Van Hensbergen
Headers show

Commit Message

jvrao Feb. 8, 2011, 11:38 p.m. UTC
None
diff mbox

Patch

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;