SUNRPC: Remove redundant calls to rpciod_up()/rpciod_down()
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
4ada539ed7
commit
f61534dfd3
6 changed files with 3 additions and 34 deletions
|
@ -102,19 +102,10 @@ static struct nfs_client *nfs_alloc_client(const char *hostname,
|
|||
int nfsversion)
|
||||
{
|
||||
struct nfs_client *clp;
|
||||
int error;
|
||||
|
||||
if ((clp = kzalloc(sizeof(*clp), GFP_KERNEL)) == NULL)
|
||||
goto error_0;
|
||||
|
||||
error = rpciod_up();
|
||||
if (error < 0) {
|
||||
dprintk("%s: couldn't start rpciod! Error = %d\n",
|
||||
__FUNCTION__, error);
|
||||
goto error_1;
|
||||
}
|
||||
__set_bit(NFS_CS_RPCIOD, &clp->cl_res_state);
|
||||
|
||||
if (nfsversion == 4) {
|
||||
if (nfs_callback_up() < 0)
|
||||
goto error_2;
|
||||
|
@ -154,9 +145,6 @@ error_3:
|
|||
if (__test_and_clear_bit(NFS_CS_CALLBACK, &clp->cl_res_state))
|
||||
nfs_callback_down();
|
||||
error_2:
|
||||
rpciod_down();
|
||||
__clear_bit(NFS_CS_RPCIOD, &clp->cl_res_state);
|
||||
error_1:
|
||||
kfree(clp);
|
||||
error_0:
|
||||
return NULL;
|
||||
|
@ -198,9 +186,6 @@ static void nfs_free_client(struct nfs_client *clp)
|
|||
if (__test_and_clear_bit(NFS_CS_CALLBACK, &clp->cl_res_state))
|
||||
nfs_callback_down();
|
||||
|
||||
if (__test_and_clear_bit(NFS_CS_RPCIOD, &clp->cl_res_state))
|
||||
rpciod_down();
|
||||
|
||||
kfree(clp->cl_hostname);
|
||||
kfree(clp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue