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: hiro...@soupacific.com Analysed by: Mikolaj Golub <to.my.troc...@gmail.com> Tested by: hiro...@soupacific.com, Mikolaj Golub <to.my.troc...@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) _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"