Oscar Ou has uploaded this change for review.
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@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 change 1223165. To unsubscribe, or for help writing mail filters, visit settings.