]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix two cases in the new NFS server where a tsleep() is
authorrmacklem <rmacklem@FreeBSD.org>
Sat, 12 May 2012 22:20:55 +0000 (22:20 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Sat, 12 May 2012 22:20:55 +0000 (22:20 +0000)
commit4ff8331c1b8e7243d13d6e3c842371f4c40b1f64
tree0d9ff839421e994d9fba1a12cefbe8826ddbef35
parent2325662608ef525d2b16f218c7f92205ae571d5c
Fix two cases in the new NFS server where a tsleep() is
used, when the code should actually protect the tested
variable with a mutex. Since the tsleep()s had a 10sec
timeout, the race would have only delayed the allocation
of a new clientid for a client. The sleeps will also
rarely occur, since having a callback in progress when
a client acquires a new clientid, is unlikely.
in practice, since having a callback in progress when
a fresh clientid is being acquired by a client is unlikely.

MFC after: 1 month
sys/fs/nfsserver/nfs_nfsdstate.c