>From Daniel Gryniewicz <d...@redhat.com>:

Daniel Gryniewicz has uploaded this change for review. ( 
https://review.gerrithub.io/360642


Change subject: MDCACHE - Protect export init from UP calls
......................................................................

MDCACHE - Protect export init from UP calls

As soon as we call create_export() on the Sub-FSAL, it can start making
UP calls.  However, we're not ready to process them yet, since stacking
is not complete.

Add a RW lock to protect this.  UP calls take it for read, and init
takes it for write.  This means UP calls to not block each other, but
all of them wait for init to complete.

Change-Id: I4a79fb6f9c187b999f42163e4515eeca9d24eb27
Signed-off-by: Daniel Gryniewicz <d...@redhat.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_export.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_int.h
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_main.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_up.c
4 files changed, 50 insertions(+), 11 deletions(-)



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

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4a79fb6f9c187b999f42163e4515eeca9d24eb27
Gerrit-Change-Number: 360642
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Gryniewicz <d...@redhat.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