Don't tsleep() with an sb_mtx held.

This commit is contained in:
Dima Dorfman 2002-05-27 05:20:15 +00:00
parent 3f5869d0b0
commit ad308c10c7
1 changed files with 2 additions and 2 deletions

View File

@ -232,8 +232,8 @@ nfs_connect(struct nfsmount *nmp, struct nfsreq *rep)
s = splnet();
SOCK_LOCK(so);
while ((so->so_state & SS_ISCONNECTING) && so->so_error == 0) {
(void) tsleep((caddr_t)&so->so_timeo, PSOCK,
"nfscon", 2 * hz);
(void) msleep((caddr_t)&so->so_timeo, SOCK_MTX(so),
PSOCK, "nfscon", 2 * hz);
if ((so->so_state & SS_ISCONNECTING) &&
so->so_error == 0 && rep &&
(error = nfs_sigintr(nmp, rep,