nfsd/sunrpc: abstract out svc_set_num_threads to sv_ops
authorJeff Layton <jlayton@primarydata.com>
Mon, 8 Jun 2015 19:08:33 +0000 (12:08 -0700)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 10 Aug 2015 20:05:43 +0000 (16:05 -0400)
commit598e2359090d393b01a8e10386dc3056ccfa47ae
treeba60a2163a0ef727a0223f6b4f5c95e38aeec720
parentb9e13cdfac70e38ade17b53810a36968c5842339
nfsd/sunrpc: abstract out svc_set_num_threads to sv_ops

Add an operation that will do setup of the service. In the case of a
classic thread-based service that means starting up threads. In the case
of a workqueue-based service, the setup will do something different.

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