@@ -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;