diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2012-02-23 16:47:05 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2012-02-23 16:47:05 +0000 |
commit | a05fe1c2c9c93b4362978465d9009af686302f2a (patch) | |
tree | cd3a1103328da6a58903561bd3380a23b32dbc6a /sys/kern/uipc_domain.c | |
parent | bfe47eb1dfe2cde280e0f7b11cb1484279fbaebb (diff) | |
download | FreeBSD-src-a05fe1c2c9c93b4362978465d9009af686302f2a.zip FreeBSD-src-a05fe1c2c9c93b4362978465d9009af686302f2a.tar.gz |
hrs@ reported a panic to freebsd-stable@ under the subject line
"panic in 8.3-PRERELEASE" on Feb. 22, 2012. This panic was caused
by use of a mix of tsleep() and msleep() calls on the same event
in the new NFS server DRC code. It did "mtx_unlock(); tsleep();"
in two places, which kib@ noted introduced a slight risk that the
wakeup() would occur before the tsleep(), resulting in a 10sec
delay before waking up. This patch fixes the problem by replacing
"mtx_unlock(); tsleep();" with mtx_sleep(..PDROP..). It also
changes a nfsmsleep() call to mtx_sleep() so that the code uses
mtx_sleep() consistently within the file.
Tested by: hrs (in progress)
Reviewed by: jhb
MFC after: 5 days
Diffstat (limited to 'sys/kern/uipc_domain.c')
0 files changed, 0 insertions, 0 deletions