Assaf Yaari has uploaded this change for review.

View Change

FSAL_PROXY_V3: Ensure that the used xid is unique

If the used XID is the same as other call that is identical, it may
cause the DRC to drop the request which cause the FSAL thread and client
to halt.
Using rand_r is not good enough as mutiple threads calling it at the
same time (using same 'seedp') may produce the same number.

Signed-off-by: Assaf Yaari <assafy@google.com>
Change-Id: I725e62f91638ee39aad4c990cffaa4b470f0aa45
---
M src/FSAL/FSAL_PROXY_V3/rpc.c
1 file changed, 27 insertions(+), 10 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/60/546260/1

To view, visit change 546260. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I725e62f91638ee39aad4c990cffaa4b470f0aa45
Gerrit-Change-Number: 546260
Gerrit-PatchSet: 1
Gerrit-Owner: Assaf Yaari <assafy@google.com>
Gerrit-MessageType: newchange