Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2010 21:44:21 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209183 - head/sbin/hastd
Message-ID:  <201006142144.o5ELiLQ7079375@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Mon Jun 14 21:44:20 2010
New Revision: 209183
URL: http://svn.freebsd.org/changeset/base/209183

Log:
  Initialize gctl_seq for synchronization requests.
  
  Reported by:	hiroshi@soupacific.com
  Analysed by:	Mikolaj Golub <to.my.trociny@gmail.com>
  Tested by:	hiroshi@soupacific.com, Mikolaj Golub <to.my.trociny@gmail.com>
  MFC after:	3 days

Modified:
  head/sbin/hastd/primary.c

Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c	Mon Jun 14 21:41:22 2010	(r209182)
+++ head/sbin/hastd/primary.c	Mon Jun 14 21:44:20 2010	(r209183)
@@ -195,7 +195,10 @@ static pthread_mutex_t metadata_lock;
 	mtx_unlock(&hio_##name##_list_lock);				\
 } while (0)
 
-#define	SYNCREQ(hio)		do { (hio)->hio_ggio.gctl_unit = -1; } while (0)
+#define	SYNCREQ(hio)		do {					\
+	(hio)->hio_ggio.gctl_unit = -1;					\
+	(hio)->hio_ggio.gctl_seq = 1;					\
+} while (0)
 #define	ISSYNCREQ(hio)		((hio)->hio_ggio.gctl_unit == -1)
 #define	SYNCREQDONE(hio)	do { (hio)->hio_ggio.gctl_unit = -2; } while (0)
 #define	ISSYNCREQDONE(hio)	((hio)->hio_ggio.gctl_unit == -2)



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