Commit 899dd388 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'for-linus-3.11-merge-window-part-1' of...

Merge tag 'for-linus-3.11-merge-window-part-1' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs

Pull 9p update from Eric Van Hensbergen:
 "Grab bag of little fixes and enhancements:
  - optional security enhancements
  - fix path coverage in MAINTAINERS
  - switch to using most used protocol and transport as default
  - clean up buffer dumps in trace code

  Held off on RDMA patches as they need to be cleaned up a bit, but will
  try to get the cleaned, checked, and pushed by mid-week"

* tag 'for-linus-3.11-merge-window-part-1' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
  9p: Add rest of 9p files to MAINTAINERS entry
  9p: trace: use %*ph to dump buffer
  net/9p: Handle error in zero copy request correctly for 9p2000.u
  net/9p: Use virtio transpart as the default transport
  net/9p: Make 9P2000.L the default protocol for 9p file system
parents 9a5889ae 2315cb14
...@@ -180,6 +180,11 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs.git ...@@ -180,6 +180,11 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs.git
S: Maintained S: Maintained
F: Documentation/filesystems/9p.txt F: Documentation/filesystems/9p.txt
F: fs/9p/ F: fs/9p/
F: net/9p/
F: include/net/9p/
F: include/uapi/linux/virtio_9p.h
F: include/trace/events/9p.h
A8293 MEDIA DRIVER A8293 MEDIA DRIVER
M: Antti Palosaari <crope@iki.fi> M: Antti Palosaari <crope@iki.fi>
......
...@@ -143,31 +143,9 @@ TRACE_EVENT(9p_protocol_dump, ...@@ -143,31 +143,9 @@ TRACE_EVENT(9p_protocol_dump,
__entry->tag = pdu->tag; __entry->tag = pdu->tag;
memcpy(__entry->line, pdu->sdata, P9_PROTO_DUMP_SZ); memcpy(__entry->line, pdu->sdata, P9_PROTO_DUMP_SZ);
), ),
TP_printk("clnt %lu %s(tag = %d)\n%.3x: " TP_printk("clnt %lu %s(tag = %d)\n%.3x: %16ph\n%.3x: %16ph\n",
"%02x %02x %02x %02x %02x %02x %02x %02x " (unsigned long)__entry->clnt, show_9p_op(__entry->type),
"%02x %02x %02x %02x %02x %02x %02x %02x\n" __entry->tag, 0, __entry->line, 16, __entry->line + 16)
"%.3x: "
"%02x %02x %02x %02x %02x %02x %02x %02x "
"%02x %02x %02x %02x %02x %02x %02x %02x\n",
(long)__entry->clnt, show_9p_op(__entry->type),
__entry->tag, 0,
__entry->line[0], __entry->line[1],
__entry->line[2], __entry->line[3],
__entry->line[4], __entry->line[5],
__entry->line[6], __entry->line[7],
__entry->line[8], __entry->line[9],
__entry->line[10], __entry->line[11],
__entry->line[12], __entry->line[13],
__entry->line[14], __entry->line[15],
16,
__entry->line[16], __entry->line[17],
__entry->line[18], __entry->line[19],
__entry->line[20], __entry->line[21],
__entry->line[22], __entry->line[23],
__entry->line[24], __entry->line[25],
__entry->line[26], __entry->line[27],
__entry->line[28], __entry->line[29],
__entry->line[30], __entry->line[31])
); );
#endif /* _TRACE_9P_H */ #endif /* _TRACE_9P_H */
......
...@@ -127,7 +127,7 @@ static int parse_opts(char *opts, struct p9_client *clnt) ...@@ -127,7 +127,7 @@ static int parse_opts(char *opts, struct p9_client *clnt)
char *s; char *s;
int ret = 0; int ret = 0;
clnt->proto_version = p9_proto_2000u; clnt->proto_version = p9_proto_2000L;
clnt->msize = 8192; clnt->msize = 8192;
if (!opts) if (!opts)
...@@ -995,6 +995,9 @@ struct p9_client *p9_client_create(const char *dev_name, char *options) ...@@ -995,6 +995,9 @@ struct p9_client *p9_client_create(const char *dev_name, char *options)
if (err < 0) if (err < 0)
goto destroy_tagpool; goto destroy_tagpool;
if (!clnt->trans_mod)
clnt->trans_mod = v9fs_get_trans_by_name("virtio");
if (!clnt->trans_mod) if (!clnt->trans_mod)
clnt->trans_mod = v9fs_get_default_trans(); clnt->trans_mod = v9fs_get_default_trans();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment