Use seqno in serial requests
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
parent
add64089d7
commit
ae8bdd8461
@ -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)
|
||||
|
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user