nfsd/sunrpc: move pool_mode definitions into svc.h
authorJeff Layton <jlayton@primarydata.com>
Mon, 8 Jun 2015 19:09:54 +0000 (12:09 -0700)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 10 Aug 2015 20:05:43 +0000 (16:05 -0400)
commitd70bc0c67c7aaf0d00084b2f91b44fe1a8ae4e15
treea6542e7c8c30fe37b74b4f13af22c55d9c1dd224
parent598e2359090d393b01a8e10386dc3056ccfa47ae
nfsd/sunrpc: move pool_mode definitions into svc.h

In later patches, we're going to need to allow code external to svc.c
to figure out what pool_mode is in use. Move these definitions into
svc.h to prepare for that.

Also, make the svc_pool_map object available and exported so that other
modules can peek in there to get insight into what pool mode is in use.
Likewise, export svc_pool_map_get/put function to make it safe to do so.

Signed-off-by: Shirley Ma <shirley.ma@oracle.com>
Acked-by: Jeff Layton <jlayton@primarydata.com>
Tested-by: Shirley Ma <shirley.ma@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/svc.h
net/sunrpc/svc.c