diff options
author | pjd <pjd@FreeBSD.org> | 2010-06-14 21:44:20 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-06-14 21:44:20 +0000 |
commit | 05cedac6b7bd5820b2cea3516b5b081cdd1c212e (patch) | |
tree | c91f5ea6c6ed4bda03613cb2ddf671dbe23fb719 /sbin/hastd/primary.c | |
parent | 8a3620394e451418debccc462a91a4d576ce544d (diff) | |
download | FreeBSD-src-05cedac6b7bd5820b2cea3516b5b081cdd1c212e.zip FreeBSD-src-05cedac6b7bd5820b2cea3516b5b081cdd1c212e.tar.gz |
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
Diffstat (limited to 'sbin/hastd/primary.c')
-rw-r--r-- | sbin/hastd/primary.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 0985920..ae74220 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -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) |