9p: Use a slab for allocating requests
authorMatthew Wilcox <willy@infradead.org>
Wed, 11 Jul 2018 21:02:24 +0000 (14:02 -0700)
committerDominique Martinet <dominique.martinet@cea.fr>
Wed, 29 Aug 2018 04:39:57 +0000 (13:39 +0900)
commit996d5b4db4b191f2676cf8775565cab8a5e2753b
tree586a82cc32aebc85a181bc1cc837062f3d34660f
parent62e3941776fea8678bb8120607039410b1b61a65
9p: Use a slab for allocating requests

Replace the custom batch allocation with a slab.  Use an IDR to store
pointers to the active requests instead of an array.  We don't try to
handle P9_NOTAG specially; the IDR will happily shrink all the way back
once the TVERSION call has completed.

Link: http://lkml.kernel.org/r/20180711210225.19730-6-willy@infradead.org
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Cc: Ron Minnich <rminnich@sandia.gov>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
include/net/9p/client.h
net/9p/client.c
net/9p/mod.c