mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
nfsd4: use list_move in move_to_confirmed
rather than list_del_init, list_add Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
be1fdf6c43
commit
328efbab0f
@ -859,10 +859,9 @@ move_to_confirmed(struct nfs4_client *clp)
|
||||
unsigned int strhashval;
|
||||
|
||||
dprintk("NFSD: move_to_confirm nfs4_client %p\n", clp);
|
||||
list_del_init(&clp->cl_strhash);
|
||||
list_move(&clp->cl_idhash, &conf_id_hashtbl[idhashval]);
|
||||
strhashval = clientstr_hashval(clp->cl_recdir);
|
||||
list_add(&clp->cl_strhash, &conf_str_hashtbl[strhashval]);
|
||||
list_move(&clp->cl_strhash, &conf_str_hashtbl[strhashval]);
|
||||
renew_client(clp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user