From owner-freebsd-bugs@FreeBSD.ORG Tue Mar 5 11:00:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 43ECECF7 for ; Tue, 5 Mar 2013 11:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 383766D8 for ; Tue, 5 Mar 2013 11:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r25B01VV072916 for ; Tue, 5 Mar 2013 11:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r25B01HY072915; Tue, 5 Mar 2013 11:00:01 GMT (envelope-from gnats) Date: Tue, 5 Mar 2013 11:00:01 GMT Message-Id: <201303051100.r25B01HY072915@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Andriy Gapon Subject: Re: kern/176636: Periodical crashes with 9.1-R X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Andriy Gapon List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Mar 2013 11:00:01 -0000 The following reply was made to PR kern/176636; it has been noted by GNATS. From: Andriy Gapon 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