mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-24 16:10:11 +00:00
Tai Horgan reported via email that there were two places in
the new NFSv4 server where the code follows the wrong list. Fortunately, for these fairly rare cases, the lc_stateid[] lists are normally empty. This patch fixes the code to follow the correct list. Reported by: tai.horgan at isilon.com Discussed with: zack MFC after: 2 weeks
This commit is contained in:
parent
801c438304
commit
5b79362b47
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230100
@ -315,7 +315,7 @@ nfsrv_setclient(struct nfsrv_descript *nd, struct nfsclient **new_clpp,
|
||||
for (i = 0; i < NFSSTATEHASHSIZE; i++) {
|
||||
LIST_NEWHEAD(&new_clp->lc_stateid[i],
|
||||
&clp->lc_stateid[i], ls_hash);
|
||||
LIST_FOREACH(tstp, &new_clp->lc_stateid[i], ls_list)
|
||||
LIST_FOREACH(tstp, &new_clp->lc_stateid[i], ls_hash)
|
||||
tstp->ls_clp = new_clp;
|
||||
}
|
||||
LIST_INSERT_HEAD(NFSCLIENTHASH(new_clp->lc_clientid), new_clp,
|
||||
@ -369,7 +369,7 @@ nfsrv_setclient(struct nfsrv_descript *nd, struct nfsclient **new_clpp,
|
||||
for (i = 0; i < NFSSTATEHASHSIZE; i++) {
|
||||
LIST_NEWHEAD(&new_clp->lc_stateid[i], &clp->lc_stateid[i],
|
||||
ls_hash);
|
||||
LIST_FOREACH(tstp, &new_clp->lc_stateid[i], ls_list)
|
||||
LIST_FOREACH(tstp, &new_clp->lc_stateid[i], ls_hash)
|
||||
tstp->ls_clp = new_clp;
|
||||
}
|
||||
LIST_INSERT_HEAD(NFSCLIENTHASH(new_clp->lc_clientid), new_clp,
|
||||
|
Loading…
Reference in New Issue
Block a user