Frank Filz has uploaded this change for review.

View Change

MDCACHE: Fix Coverity CID 502123 - fix lock inversion

Instead of doing the mdcache_dirent_invalidate_all in mdcache_refresh_attrs
with the attr_lock held, pass the need for invalidate out to the one caller
who needs it, who will take the content_lock and call
mdcache_dirent_invalidate_all after dropping the attr_lock.

Change-Id: I33d24bf4a69dab0de75f34ddd84dc3fcd80af4c2
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_handle.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_int.h
2 files changed, 19 insertions(+), 11 deletions(-)

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

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

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I33d24bf4a69dab0de75f34ddd84dc3fcd80af4c2
Gerrit-Change-Number: 1201234
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilzlnx@mindspring.com>