summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2000-07-26 23:10:02 +0000
committermckusick <mckusick@FreeBSD.org>2000-07-26 23:10:02 +0000
commit5f9237207a5d726bc1548e62283c8b155456b7ce (patch)
treeca7bba3c3e17a025e2453b63c207297b4c501767
parentb86877bef05dab48d7c3a733431361260c18fa81 (diff)
downloadFreeBSD-src-5f9237207a5d726bc1548e62283c8b155456b7ce.zip
FreeBSD-src-5f9237207a5d726bc1548e62283c8b155456b7ce.tar.gz
Disable LK_CANRECURSE on buffer locks. The recusion is needed only for
certain uses of snapshots and currently appears to be causing some other problems. So for now, I am reverting to the old semantics until I have had time to investigate what is causing the other problems.
-rw-r--r--sys/sys/buf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h
index 4cb2bba..42424d6 100644
--- a/sys/sys/buf.h
+++ b/sys/sys/buf.h
@@ -237,7 +237,7 @@ extern char *buf_wmesg; /* Default buffer lock message */
* Initialize a lock.
*/
#define BUF_LOCKINIT(bp) \
- lockinit(&(bp)->b_lock, PRIBIO + 4, buf_wmesg, 0, LK_CANRECURSE)
+ lockinit(&(bp)->b_lock, PRIBIO + 4, buf_wmesg, 0, 0)
/*
*
* Get a lock sleeping non-interruptably until it becomes available.
OpenPOWER on IntegriCloud