Zhitao Li has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1211995?usp=email )
Change subject: fix(dupreq): acquire partition lock firstly on nfs_dupreq_delete()
......................................................................
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(a)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
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1211995?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
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(a)iomesh.com>