summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_shm.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-06-02 15:46:37 +0000
committeralc <alc@FreeBSD.org>2010-06-02 15:46:37 +0000
commit24ac89cf14c282421af2638eaf20a08c0649ab78 (patch)
tree7da5c63c04fad0ef79b4758aad12c540642e9863 /sys/kern/uipc_shm.c
parentb16b48273ab37f4a59084d43d95bb66e8434c813 (diff)
downloadFreeBSD-src-24ac89cf14c282421af2638eaf20a08c0649ab78.zip
FreeBSD-src-24ac89cf14c282421af2638eaf20a08c0649ab78.tar.gz
Minimize the use of the page queues lock for synchronizing access to the
page's dirty field. With the exception of one case, access to this field is now synchronized by the object lock.
Diffstat (limited to 'sys/kern/uipc_shm.c')
-rw-r--r--sys/kern/uipc_shm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
index fe1a224..2e37463 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -304,9 +304,7 @@ shm_dotruncate(struct shmfd *shmfd, off_t length)
*/
base = roundup2(base, DEV_BSIZE);
- vm_page_lock_queues();
vm_page_clear_dirty(m, base, PAGE_SIZE - base);
- vm_page_unlock_queues();
} else if ((length & PAGE_MASK) &&
__predict_false(object->cache != NULL)) {
vm_page_cache_free(object, OFF_TO_IDX(length),
OpenPOWER on IntegriCloud