Re: [PATCH v2 1/2] net/9p: embed fcall in req to round down buffer allocs

2018-08-02 Thread Dominique Martinet
Greg Kurz wrote on Thu, Aug 02, 2018: > > @@ -443,9 +444,9 @@ static int rdma_request(struct p9_client *client, > > struct p9_req_t *req) > > **/ > > if (unlikely(atomic_read(&rdma->excess_rc) > 0)) { > > if ((atomic_sub_return(1, &rdma->excess_rc) >= 0)) { > > -

Re: [PATCH v2 1/2] net/9p: embed fcall in req to round down buffer allocs

2018-08-02 Thread Greg Kurz
On Thu, 2 Aug 2018 04:37:31 +0200 Dominique Martinet wrote: > From: Dominique Martinet > > 'msize' is often a power of two, or at least page-aligned, so avoiding > an overhead of two dozen bytes for each allocation will help the > allocator do its work and reduce memory fragmentation. > > Sug

[PATCH v2 1/2] net/9p: embed fcall in req to round down buffer allocs

2018-08-01 Thread Dominique Martinet
From: Dominique Martinet 'msize' is often a power of two, or at least page-aligned, so avoiding an overhead of two dozen bytes for each allocation will help the allocator do its work and reduce memory fragmentation. Suggested-by: Matthew Wilcox Signed-off-by: Dominique Martinet Cc: Matthew Wil