NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/40389 CVS commit: src/sys

The following reply was made to PR kern/40389; it has been noted by GNATS.

From: Chuck Silvers <>
Subject: PR/40389 CVS commit: src/sys
Date: Wed, 1 Sep 2010 16:56:20 +0000

 Module Name:   src
 Committed By:  chs
 Date:          Wed Sep  1 16:56:20 UTC 2010
 Modified Files:
        src/sys/miscfs/genfs: genfs_io.c genfs_node.h genfs_vnops.c
        src/sys/ufs/ufs: ufs_inode.c
        src/sys/uvm: uvm_pager.h
 Log Message:
 replace the earlier workaround for PR 40389 with a better fix.
 the earlier change caused data corruption by freeing pages
 without invaliding their mappings.  instead of the trylock/retry,
 just take the genfs-node lock before calling VOP_GETPAGES()
 and pass a new flag to tell it that we're already holding this lock.
 To generate a diff of this commit:
 cvs rdiff -u -r1.39 -r1.40 src/sys/miscfs/genfs/genfs_io.c
 cvs rdiff -u -r1.19 -r1.20 src/sys/miscfs/genfs/genfs_node.h
 cvs rdiff -u -r1.182 -r1.183 src/sys/miscfs/genfs/genfs_vnops.c
 cvs rdiff -u -r1.82 -r1.83 src/sys/ufs/ufs/ufs_inode.c
 cvs rdiff -u -r1.38 -r1.39 src/sys/uvm/uvm_pager.h
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index