Oscar Ou has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1223165?usp=email )
Change subject: Fix cid_mutex deadlock in reserve_lease_or_expire
......................................................................
Fix cid_mutex deadlock in reserve_lease_or_expire
In reserve_lease_or_expire(), cid_mutex it held first.
If the lease is expired, it decreases the state owner reference by
calling dec_state_owner_ref(), then it turn acquires the cid_mutex
inside the free_nfs4_owner().
To prevent this deadlock, dec_state_owner_ref() should be called
outside the the cid_mutex.
Change-Id: I29d92867548ab7bf0b74e16832f64f7138ff7fce
Signed-off-by: Oscar Ou <oscarou(a)synology.com>
---
M src/SAL/nfs4_lease.c
1 file changed, 8 insertions(+), 8 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/65/1223165/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1223165?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: I29d92867548ab7bf0b74e16832f64f7138ff7fce
Gerrit-Change-Number: 1223165
Gerrit-PatchSet: 1
Gerrit-Owner: Oscar Ou <oscarou(a)synology.com>