summaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_input.c
diff options
context:
space:
mode:
authorChristian Schoenebeck <linux_oss@crudebyte.com>2022-07-15 23:33:56 +0200
committerDominique Martinet <asmadeus@codewreck.org>2022-10-05 00:05:41 +0200
commit60ece0833b6c2bc1465eb2803fec20b670e2ee93 (patch)
tree544ee183389b5867645c4bd9f3183b865a0f745e /drivers/virtio/virtio_input.c
parentnet/9p: add 'pooled_rbuffers' flag to struct p9_trans_module (diff)
downloadlinux-60ece0833b6c2bc1465eb2803fec20b670e2ee93.tar.xz
linux-60ece0833b6c2bc1465eb2803fec20b670e2ee93.zip
net/9p: allocate appropriate reduced message buffers
So far 'msize' was simply used for all 9p message types, which is far too much and slowed down performance tremendously with large values for user configurable 'msize' option. Let's stop this waste by using the new p9_msg_buf_size() function for allocating more appropriate, smaller buffers according to what is actually sent over the wire. Only exception: RDMA transport is currently excluded from this message size optimization - for its response buffers that is - as RDMA transport would not cope with it, due to its response buffers being pulled from a shared pool. [1] Link: https://lore.kernel.org/all/Ys3jjg52EIyITPua@codewreck.org/ [1] Link: https://lkml.kernel.org/r/3f51590535dc96ed0a165b8218c57639cfa5c36c.1657920926.git.linux_oss@crudebyte.com Signed-off-by: Christian Schoenebeck <linux_oss@crudebyte.com> Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'drivers/virtio/virtio_input.c')
0 files changed, 0 insertions, 0 deletions