Suhas Athani has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1225729?usp=email )
Change subject: Update delegation conflict detection logic in state_deleg_conflict_impl()
......................................................................
Update delegation conflict detection logic in state_deleg_conflict_impl()
The implementation distinguishes between same-client and cross-client
operations by comparing client IDs.
- Same-client operations: Return false (no conflict, no recall needed).
- Cross-client operations: Return true (conflict detected, trigger recall
via `async_delegrecall()`).
Skip calling fsal_reopen2() if the request is from the same client that
is holding the delegation to avoid recall from cephfs.
Change-Id: Iac6b28944c691d4c22227b88969f9371db5fcab3
Signed-off-by: Suhas Athani <Suhas.Athani(a)ibm.com>
---
M src/Protocols/NFS/nfs4_op_open.c
M src/SAL/state_deleg.c
2 files changed, 104 insertions(+), 20 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/29/1225729/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1225729?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: Iac6b28944c691d4c22227b88969f9371db5fcab3
Gerrit-Change-Number: 1225729
Gerrit-PatchSet: 1
Gerrit-Owner: Suhas Athani <Suhas.Athani(a)ibm.com>