From owner-cvs-src-old@FreeBSD.ORG Wed Apr 20 18:43:39 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8691F106566B for ; Wed, 20 Apr 2011 18:43:39 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 73D428FC17 for ; Wed, 20 Apr 2011 18:43:39 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p3KIhdI3052761 for ; Wed, 20 Apr 2011 18:43:39 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p3KIhd0I052760 for cvs-src-old@freebsd.org; Wed, 20 Apr 2011 18:43:39 GMT (envelope-from pjd@repoman.freebsd.org) Message-Id: <201104201843.p3KIhd0I052760@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to pjd@repoman.freebsd.org using -f From: Pawel Jakub Dawidek Date: Wed, 20 Apr 2011 18:43:28 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/hastd hastd.c primary.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2011 18:43:39 -0000 pjd 2011-04-20 18:43:28 UTC FreeBSD src repository Modified files: sbin/hastd hastd.c primary.c Log: SVN rev 220898 on 2011-04-20 18:43:28Z by pjd When we become primary, we connect to the remote and expect it to be in secondary role. It is possible that the remote node is primary, but only because there was a role change and it didn't finish cleaning up (unmounting file systems, etc.). If we detect such situation, wait for the remote node to switch the role to secondary before accepting I/Os. If we don't wait for it in that case, we will most likely cause split-brain. MFC after: 1 week Revision Changes Path 1.49 +7 -0 src/sbin/hastd/hastd.c 1.71 +49 -13 src/sbin/hastd/primary.c