Zhitao Li has uploaded this change for review.

View Change

fix(dupreq): acquire partition lock firstly on nfs_dupreq_delete()

There exists a race condition that some xx_start() finds there is
a matched entry, plan to use it but have not add into "dv->dupes",
another xx_delete() checks "dv->dupes" is empty and removes the
entry. Partition lock is used to avoid this case.

Change-Id: I95257438fe72f2b2a90b0214f68540b845f304e4
Signed-off-by: zhitaoli <zhitao.li@iomesh.com>
---
M src/RPCAL/nfs_dupreq.c
1 file changed, 10 insertions(+), 5 deletions(-)

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

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

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I95257438fe72f2b2a90b0214f68540b845f304e4
Gerrit-Change-Number: 1211995
Gerrit-PatchSet: 1
Gerrit-Owner: Zhitao Li <zhitao.li@iomesh.com>