Daniel Gryniewicz has uploaded this change for review.

View Change

MDCACHE - Close unexport race for used entries

When we're unexporting, we need to make an entry unreachable if no
exports are referencing it. However, the refcount is not a suitable
method of determining this, since an OP can be outstanding on the entry,
keeping a ref on it. If this was the case, we'd leave the entry
dangling, and a new export could reference it, and it's contents could
be bad.

To avoid this, switch from using the refcount to a locked check to make
sure the entry is still not exported.

Change-Id: If7c21274325c23ba1a15797a3be29cf4330e1203
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_lru.c
1 file changed, 13 insertions(+), 17 deletions(-)

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

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

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: If7c21274325c23ba1a15797a3be29cf4330e1203
Gerrit-Change-Number: 487898
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Gryniewicz <dang@redhat.com>
Gerrit-MessageType: newchange