kern/176636: Periodical crashes with 9.1-R

Andriy Gapon avg at FreeBSD.org
Tue Mar 5 11:00:01 UTC 2013


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

From: Andriy Gapon <avg at FreeBSD.org>
To: bug-followup at FreeBSD.org, freebsd at gal.dk
Cc:  
Subject: Re: kern/176636: Periodical crashes with 9.1-R
Date: Tue, 05 Mar 2013 12:55:22 +0200

 Please try the following patch.
 
 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
 +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
 @@ -543,7 +543,9 @@ mappedread_sf(vnode_t *vp, int nbytes, uio_t *uio)
  			vm_page_io_finish(pp);
  			vm_page_lock(pp);
  			if (error) {
 -				vm_page_free(pp);
 +				if (pp->wire_count == 0 && pp->valid == 0 &&
 +				    pp->busy == 0 && !(pp->oflags & VPO_BUSY))
 +					vm_page_free(pp);
  			} else {
  				pp->valid = VM_PAGE_BITS_ALL;
  				vm_page_activate(pp);
 
 Additionally, if possible, I would like to see the following information from
 "Crash 3":
 - value of 'pg' in kern_sendfile frame
 - output of 'info reg' command in zfs_freebsd_read frame
 
 Thank you.
 -- 
 Andriy Gapon


More information about the freebsd-bugs mailing list