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:
Родитель
be1fdf6c43
Коммит
328efbab0f
|
@ -859,10 +859,9 @@ move_to_confirmed(struct nfs4_client *clp)
|
||||||
unsigned int strhashval;
|
unsigned int strhashval;
|
||||||
|
|
||||||
dprintk("NFSD: move_to_confirm nfs4_client %p\n", clp);
|
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]);
|
list_move(&clp->cl_idhash, &conf_id_hashtbl[idhashval]);
|
||||||
strhashval = clientstr_hashval(clp->cl_recdir);
|
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);
|
renew_client(clp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче