Frank Filz has uploaded this change for review.

View Change

MDCACHE: Fix Coverity CID 502134 - move writelock in mdcache_setattr2

By moving the writelock in mdcache_setattr2 to the top, we protect
the use of change from before the attributes are changed in the
backend through the verification that it changed.

Change-Id: Ica749a34a07e20a7a0b12a971cbb2644a437b8d4
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_handle.c
1 file changed, 7 insertions(+), 2 deletions(-)

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

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

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