From owner-svn-src-all@FreeBSD.ORG Sun Jun 16 16:01:25 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 45EF5637; Sun, 16 Jun 2013 16:01:25 +0000 (UTC) (envelope-from gibbs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 3724C1D86; Sun, 16 Jun 2013 16:01:25 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5GG1PYP082827; Sun, 16 Jun 2013 16:01:25 GMT (envelope-from gibbs@svn.freebsd.org) Received: (from gibbs@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5GG1P7m082826; Sun, 16 Jun 2013 16:01:25 GMT (envelope-from gibbs@svn.freebsd.org) Message-Id: <201306161601.r5GG1P7m082826@svn.freebsd.org> From: "Justin T. Gibbs" Date: Sun, 16 Jun 2013 16:01:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251807 - head/sys/dev/xen/blkfront X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jun 2013 16:01:25 -0000 Author: gibbs Date: Sun Jun 16 16:01:24 2013 New Revision: 251807 URL: http://svnweb.freebsd.org/changeset/base/251807 Log: sys/dev/xen/blkfront/blkfront.c: In xbd_thaw(), fix inverted logic to verify the queue is frozen before attempting a thaw. MFC after: 1 week Modified: head/sys/dev/xen/blkfront/blkfront.c Modified: head/sys/dev/xen/blkfront/blkfront.c ============================================================================== --- head/sys/dev/xen/blkfront/blkfront.c Sun Jun 16 15:35:13 2013 (r251806) +++ head/sys/dev/xen/blkfront/blkfront.c Sun Jun 16 16:01:24 2013 (r251807) @@ -103,7 +103,7 @@ xbd_thaw(struct xbd_softc *sc, xbd_flag_ if (xbd_flag != XBDF_NONE && (sc->xbd_flags & xbd_flag) == 0) return; - if (sc->xbd_qfrozen_cnt != 0) + if (sc->xbd_qfrozen_cnt == 0) panic("%s: Thaw with flag 0x%x while not frozen.", __func__, xbd_flag);