Subject: kern/33513: vnode dirtiness problem
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 05/19/2006 13:10:00
>Number:         33513
>Category:       kern
>Synopsis:       vnode dirtiness problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 19 13:10:00 +0000 2006
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 3.99.17
>Organization:

>Environment:
	
	
System: NetBSD kaeru 3.99.17
Architecture: i386
Machine: i386
>Description:
	there are some code which explicitly mark pages dirty by clearing
	PG_CLEAN.  if the pages belong to a vnode, the vnode should be
	marked dirty as well.

	i guess what Joel CARNAT reported on port-xen@ is a symptom of
	this bug.
	http://mail-index.NetBSD.org/port-xen/2006/05/12/0000.html
	http://mail-index.NetBSD.org/port-xen/2006/05/18/0000.html
>How-To-Repeat:
	code inspection.
>Fix:
	when making a page dirty,
	- mark the vnode dirty.
	- if the filesystem uses genfs, increment g_dirtygen somehow.

>Unformatted: