diff options
author | 2019-05-12 19:43:34 +0000 | |
---|---|---|
committer | 2019-05-12 19:43:34 +0000 | |
commit | eb24b34169dbac9230d40b0622130d526ea05bc6 (patch) | |
tree | 76a307fc363ecbcb2681d3f879e099f54c1b99c0 | |
parent | Mention #include of <sys/types.h> in synopsis. (diff) | |
download | wireguard-openbsd-eb24b34169dbac9230d40b0622130d526ea05bc6.tar.xz wireguard-openbsd-eb24b34169dbac9230d40b0622130d526ea05bc6.zip |
no need to store the wmesg passed to rwsleep() as a static variable anymore
-rw-r--r-- | sys/kern/vfs_lockf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_lockf.c b/sys/kern/vfs_lockf.c index b32631cf81f..9cf18489cf7 100644 --- a/sys/kern/vfs_lockf.c +++ b/sys/kern/vfs_lockf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_lockf.c,v 1.42 2019/05/11 08:18:51 anton Exp $ */ +/* $OpenBSD: vfs_lockf.c,v 1.43 2019/05/12 19:43:34 anton Exp $ */ /* $NetBSD: vfs_lockf.c,v 1.7 1996/02/04 02:18:21 christos Exp $ */ /* @@ -327,7 +327,6 @@ lf_setlock(struct lockf *lock) { struct lockf *block; struct lockf *overlap, *ltmp; - static char lockstr[] = "lockf"; int ovcase, priority, needtolink, error; rw_assert_wrlock(&lockf_lock); @@ -382,7 +381,7 @@ lf_setlock(struct lockf *lock) TAILQ_INSERT_TAIL(&block->lf_blkhd, lock, lf_block); TAILQ_INSERT_TAIL(&lock->lf_state->ls_pending, lock, lf_entry); KERNEL_LOCK(); - error = rwsleep(lock, &lockf_lock, priority, lockstr, 0); + error = rwsleep(lock, &lockf_lock, priority, "lockf", 0); KERNEL_UNLOCK(); TAILQ_REMOVE(&lock->lf_state->ls_pending, lock, lf_entry); wakeup_one(lock->lf_state); |