From owner-svn-src-all@FreeBSD.ORG Thu Oct 27 20:15:37 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6A36106566B; Thu, 27 Oct 2011 20:15:37 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B6FA08FC0A; Thu, 27 Oct 2011 20:15:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p9RKFbPl023353; Thu, 27 Oct 2011 20:15:37 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p9RKFbJ1023351; Thu, 27 Oct 2011 20:15:37 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201110272015.p9RKFbJ1023351@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Thu, 27 Oct 2011 20:15:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r226857 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 27 Oct 2011 20:15:37 -0000 Author: pjd Date: Thu Oct 27 20:15:37 2011 New Revision: 226857 URL: http://svn.freebsd.org/changeset/base/226857 Log: Minor cleanups. MFC after: 3 days Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Thu Oct 27 20:13:39 2011 (r226856) +++ head/sbin/hastd/primary.c Thu Oct 27 20:15:37 2011 (r226857) @@ -1556,6 +1556,7 @@ remote_recv_thread(void *arg) &hio_recv_list_lock[ncomp]); } mtx_unlock(&hio_recv_list_lock[ncomp]); + rw_rlock(&hio_remote_lock[ncomp]); if (!ISCONNECTED(res, ncomp)) { rw_unlock(&hio_remote_lock[ncomp]); @@ -1963,7 +1964,7 @@ sync_thread(void *arg __unused) } mtx_unlock(&metadata_lock); - pjdlog_debug(2, "sync: (%p) Moving request to the send queues.", + pjdlog_debug(2, "sync: (%p) Moving request to the send queue.", hio); refcount_init(&hio->hio_countdown, 1); QUEUE_INSERT1(hio, send, ncomp);