diff options
author | jhb <jhb@FreeBSD.org> | 2015-10-06 22:28:28 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2015-10-06 22:28:28 +0000 |
commit | 08449d14c723d0140fb8b505a4782d13e5745c57 (patch) | |
tree | b782905644a30cef9fd5bc113840ff6bfaa43e0a /usr.bin/svn/lib/libsvn_subr | |
parent | fd0437ce23b03438d45c73c82578740ce79533c6 (diff) | |
download | FreeBSD-src-08449d14c723d0140fb8b505a4782d13e5745c57.zip FreeBSD-src-08449d14c723d0140fb8b505a4782d13e5745c57.tar.gz |
MFC 287833:
Threads holding a read lock of a sleepable rm lock are not permitted
to sleep. The rmlock implementation enforces this by disabling
sleeping when a read lock is acquired. To simplify the implementation,
sleeping is disabled for most of the duration of rm_rlock. However,
it doesn't need to be disabled until the lock is acquired. If a
sleepable rm lock is contested, then rm_rlock may need to acquire the
backing sx lock. This tripped the overly-broad assertion. Fix by
relaxing the assertion around the call to sx_xlock().
Diffstat (limited to 'usr.bin/svn/lib/libsvn_subr')
0 files changed, 0 insertions, 0 deletions