Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2013 11:00:01 GMT
From:      Andriy Gapon <avg@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/176636: Periodical crashes with 9.1-R
Message-ID:  <201303051100.r25B01HY072915@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/176636; it has been noted by GNATS.

From: Andriy Gapon <avg@FreeBSD.org>
To: bug-followup@FreeBSD.org, freebsd@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303051100.r25B01HY072915>