Use seqno in serial requests

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
Lon Hohberger 2010-01-13 10:13:14 -05:00
parent add64089d7
commit ae8bdd8461
2 changed files with 4 additions and 1 deletions

View File

@ -238,6 +238,9 @@ serial_fence_virt(fence_virt_args_t *args)
memset(&req, 0, sizeof(req));
req.magic = SERIAL_MAGIC;
req.request = (uint8_t)args->op;
gettimeofday(&tv, NULL);
req.seqno = (int)tv.tv_usec;
if (args->flags & RF_UUID)
req.flags |= RF_UUID;
if (args->domain)

View File

@ -89,7 +89,7 @@ struct serial_hostlist_arg {
*/
static int
check_history(void *a, void *b) {
fence_req_t *old = a, *current = b;
serial_req_t *old = a, *current = b;
if (old->request == current->request &&
old->seqno == current->seqno &&