Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Sep 2009 12:03:53 +0300
From:      Jaakko Heinonen <jh@saunalahti.fi>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        Kris Kennaway <kris@FreeBSD.org>, FreeBSD Current <freebsd-current@freebsd.org>, Kip Macy <kmacy@FreeBSD.org>
Subject:   Re: panic: sx_xlock() of destroyed sx @ /zoo/kris/src8/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/co mmon/fs/zfs/zfs_rlock.c:535
Message-ID:  <20090912090353.GA806@a91-153-125-115.elisa-laajakaista.fi>
In-Reply-To: <20090911210053.GA2090@garage.freebsd.pl>
References:  <4AA40E30.50109@FreeBSD.org> <4AAA9187.2020907@FreeBSD.org> <20090911210053.GA2090@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2009-09-11, Pawel Jakub Dawidek wrote:
> > >panic: sx_xlock() of destroyed sx @ 
> > >/zoo/kris/src8/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_rlock.c:535 
> 
> I was trying to reproduce it by doing much more frequent syncs and
> lowering vnodes limit, so they are inactivated more often, but I wasn't
> able to reproduce it.
> 
> The problem here is that we lock a range for the given znode, but before
> we unlock the range, znode is destroyed.

I wonder if this could be related to PR kern/132068 (i.e. zfs_zget() can
return reclaimed vnodes).

If you can reproduce the panic you could try this patch:

http://www.saunalahti.fi/~jh3/patches/zfs_zget-vnode-reclaim-race.diff

-- 
Jaakko



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