From a6c8be39c9eb51c418d350c85a034e37ef1970d2 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Wed, 26 Jul 2000 23:10:02 +0000 Subject: [PATCH] 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. --- sys/sys/buf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/buf.h b/sys/sys/buf.h index 4cb2bbadab3..42424d64522 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.