diff options
author | attilio <attilio@FreeBSD.org> | 2013-02-26 18:18:39 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2013-02-26 18:18:39 +0000 |
commit | 210a93e7f7575c047adaa80ddfa1d465e9334d81 (patch) | |
tree | ea513dc3d79fb6d694287d9020e747cde0f6e707 /sys/vm/vm_object.h | |
parent | c5315c03fb9cd39e35779a299536f2388e3a6ee4 (diff) | |
parent | 134623836d0dcb10f5bc79c883bd239098952cca (diff) | |
download | FreeBSD-src-210a93e7f7575c047adaa80ddfa1d465e9334d81.zip FreeBSD-src-210a93e7f7575c047adaa80ddfa1d465e9334d81.tar.gz |
Merge from vmcontention
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r-- | sys/vm/vm_object.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h index 2cfd37f..fa806a3 100644 --- a/sys/vm/vm_object.h +++ b/sys/vm/vm_object.h @@ -209,7 +209,9 @@ extern struct vm_object kmem_object_store; #define VM_OBJECT_LOCK_ASSERT(object, type) \ mtx_assert(&(object)->mtx, (type)) #define VM_OBJECT_LOCKED(object) mtx_owned(&(object)->mtx) -#define VM_OBJECT_MTX(object) (&(object)->mtx) +#define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \ + msleep((wchan), &(object)->mtx, (pri), \ + (wmesg), (timo)) #define VM_OBJECT_TRYLOCK(object) mtx_trylock(&(object)->mtx) #define VM_OBJECT_UNLOCK(object) mtx_unlock(&(object)->mtx) |