summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-01-13 12:01:29 +0000
committeralfred <alfred@FreeBSD.org>2002-01-13 12:01:29 +0000
commit2344f261e7662c2f3f31fa8a99b424aa4e498a63 (patch)
tree2d9c066fd143b82bd6d60d9115184f5fabb17f61 /sys
parent844237b3960bfbf49070d6371a84f67f9e3366f6 (diff)
downloadFreeBSD-src-2344f261e7662c2f3f31fa8a99b424aa4e498a63.zip
FreeBSD-src-2344f261e7662c2f3f31fa8a99b424aa4e498a63.tar.gz
Remove file locking debug cruft.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/file.h14
-rw-r--r--sys/sys/filedesc.h14
2 files changed, 0 insertions, 28 deletions
diff --git a/sys/sys/file.h b/sys/sys/file.h
index 575b608..a97482d 100644
--- a/sys/sys/file.h
+++ b/sys/sys/file.h
@@ -131,22 +131,8 @@ int fdrop __P((struct file *fp, struct thread *td));
int fdrop_locked __P((struct file *fp, struct thread *td));
/* Lock a file. */
-/*#define FILE_LOCK_DEBUG*/
-#ifdef FILE_LOCK_DEBUG
-#define FILE_LOCK(f) \
- do { \
- printf("FLCK: %p %s %d\n", &(f)->f_mtx, __FILE__, __LINE__); \
- mtx_lock(&(f)->f_mtx); \
- } while (0)
-#define FILE_UNLOCK(f) \
- do { \
- printf("FREL: %p %s %d\n", &(f)->f_mtx, __FILE__, __LINE__); \
- mtx_unlock(&(f)->f_mtx); \
- } while (0)
-#else
#define FILE_LOCK(f) mtx_lock(&(f)->f_mtx)
#define FILE_UNLOCK(f) mtx_unlock(&(f)->f_mtx)
-#endif
#define FILE_LOCKED(f) mtx_owned(&(f)->f_mtx)
#define FILE_LOCK_ASSERT(f, type) mtx_assert(&(f)->f_mtx, (type))
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h
index 7699a26..40c6bf0 100644
--- a/sys/sys/filedesc.h
+++ b/sys/sys/filedesc.h
@@ -131,22 +131,8 @@ SLIST_HEAD(sigiolst, sigio);
#ifdef _KERNEL
/* Lock a file descriptor table. */
-/*#define FILEDESC_LOCK_DEBUG*/
-#ifdef FILEDESC_LOCK_DEBUG
-#define FILEDESC_LOCK(fd) \
- do { \
- printf("FD_LCK: %p %s %d\n", &(fd)->fd_mtx, __FILE__, __LINE__); \
- mtx_lock(&(fd)->fd_mtx); \
- } while (0)
-#define FILEDESC_UNLOCK(fd) \
- do { \
- printf("FD_REL: %p %s %d\n", &(fd)->fd_mtx, __FILE__, __LINE__); \
- mtx_unlock(&(fd)->fd_mtx); \
- } while (0)
-#else
#define FILEDESC_LOCK(fd) mtx_lock(&(fd)->fd_mtx)
#define FILEDESC_UNLOCK(fd) mtx_unlock(&(fd)->fd_mtx)
-#endif
#define FILEDESC_LOCKED(fd) mtx_owned(&(fd)->fd_mtx)
#define FILEDESC_LOCK_ASSERT(fd, type) mtx_assert(&(fd)->fd_mtx, (type))
OpenPOWER on IntegriCloud