>From Frank Filz <ffilz...@mindspring.com>:

Frank Filz has uploaded this change for review. ( 
https://review.gerrithub.io/359197


Change subject: Fix race between mdcache_unexport and mdc_check_mapping
......................................................................

Fix race between mdcache_unexport and mdc_check_mapping

Once we start an unexport, we must reject any new mappings between the
export and cache entries. In fact, we can utilize mdc_check_mapping to
shortcut and return ERR_FSAL_STALE for lookups and other operations
that access an mdcache entry (they come through mdc_check_mapping to
assure that the entry is mapped for an export it is accessed via).

Because of the way the locking works, we check for unexport again
before actually creating a new mapping just in case we had an unusual
race between mdcache_unexport and mdc_check_mapping.

Change-Id: I68b600c1996c7f41c7cd0b3124ce8cf1ac5c772a
Signed-off-by: Frank S. Filz <ffilz...@mindspring.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_export.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_int.h
3 files changed, 68 insertions(+), 9 deletions(-)



  git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha 
refs/changes/97/359197/1
-- 
To view, visit https://review.gerrithub.io/359197
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I68b600c1996c7f41c7cd0b3124ce8cf1ac5c772a
Gerrit-Change-Number: 359197
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilz...@mindspring.com>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to