]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r235381
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 11 Jun 2012 13:17:45 +0000 (13:17 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 11 Jun 2012 13:17:45 +0000 (13:17 +0000)
commitf4fd0a55c71db8afdbee058a7dd1440f4fe1b99d
treea1b6bcdda672e9b16366e7b44cc46962dee71e3d
parent66b54c4fcb1e5e90b6bb75daf2c91d72f41ea812
MFC: r235381
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@236888 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsserver/nfs_nfsdstate.c