svn commit: r209183 - head/sbin/hastd

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon Jun 14 21:44:21 UTC 2010


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 at soupacific.com
  Analysed by:	Mikolaj Golub <to.my.trociny at gmail.com>
  Tested by:	hiroshi at soupacific.com, Mikolaj Golub <to.my.trociny at 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)


More information about the svn-src-head mailing list