]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita15640dae350f40123e85ceb5af22b4249781812
tree586a82cc32aebc85a181bc1cc837062f3d34660f
parentb2696fcca09828a97015b7bd85547796293563b4
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