diff options
| author | Attilio Rao <attilio@FreeBSD.org> | 2007-11-24 04:22:28 +0000 |
|---|---|---|
| committer | Attilio Rao <attilio@FreeBSD.org> | 2007-11-24 04:22:28 +0000 |
| commit | 2c2bebfcb3131416432816eeb9eeeab2e017d09f (patch) | |
| tree | a93f7f1d3eed1ae07881b2a038818ab586263a3f /sys/kern/kern_lock.c | |
| parent | 1a94fde8471222bea5f84880f6a29caa4a970ab2 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_lock.c')
| -rw-r--r-- | sys/kern/kern_lock.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 6a5f213c177d..b06e17ea5610 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -506,34 +506,6 @@ acquiredrain(struct lock *lkp, int extflags) { } /* - * Transfer any waiting processes from one lock to another. - */ -void -transferlockers(from, to) - struct lock *from; - struct lock *to; -{ - - KASSERT(from != to, ("lock transfer to self")); - KASSERT((from->lk_flags&LK_WAITDRAIN) == 0, ("transfer draining lock")); - - mtx_lock(from->lk_interlock); - if (from->lk_waitcount == 0) { - mtx_unlock(from->lk_interlock); - return; - } - from->lk_newlock = to; - wakeup((void *)from); - msleep(&from->lk_newlock, from->lk_interlock, from->lk_prio, - "lkxfer", 0); - from->lk_newlock = NULL; - from->lk_flags &= ~(LK_WANT_EXCL | LK_WANT_UPGRADE); - KASSERT(from->lk_waitcount == 0, ("active lock")); - mtx_unlock(from->lk_interlock); -} - - -/* * Initialize a lock; required before use. */ void |
