From nobody@FreeBSD.org  Fri Oct 25 07:07:39 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id B0FEE92A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 25 Oct 2013 07:07:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 9DF2021A4
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 25 Oct 2013 07:07:39 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9P77dRP043168
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 25 Oct 2013 07:07:39 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9P77dbk043162;
	Fri, 25 Oct 2013 07:07:39 GMT
	(envelope-from nobody)
Message-Id: <201310250707.r9P77dbk043162@oldred.freebsd.org>
Date: Fri, 25 Oct 2013 07:07:39 GMT
From: nikhil <nikhil.kathare@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Deadlock when modifying the zvol property of increasing the size.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         183293
>Category:       kern
>Synopsis:       Deadlock when modifying the zvol property of increasing the size.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 25 07:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nikhil
>Release:        base/stable/9
>Organization:
>Environment:
But the current kernel and then installed
>Description:
zfs enters in deadlock situation when modifying the zvol property
>How-To-Repeat:
Just create the volume and then do some IO on the at volume through iscsi and then increase the size of volume, it will get deadlock.
>Fix:
Just remove the holding the lock,

rrw_enter(&dp->dp_config_rwlock, RW_WRITER, FTAG);

from function,

spa_sync_upgrades

in file spa.c



This fix is already present in base/releng/9.0

>Release-Note:
>Audit-Trail:
>Unformatted:
