>From Malahal <[email protected]>:

Malahal has uploaded a new change for review.

  https://review.gerrithub.io/277256

Change subject: [RFC] EEXIST error due to mdcache_avl_qp_insert collision
......................................................................

[RFC] EEXIST error due to mdcache_avl_qp_insert collision

This problem is observed with V2.3-stable, but this may not be the righ
fix for V2.4. Let us discuss if this problem really exists in V2.4, if
so, what would be the right fix.

We have seen spurious EEXIST error on directory/file creations due to
mdcache_avl_qp_insert() collision detection. This seems to have been
caused by FSAL asynchronous upcalls that invalidate directory entries and
a subsequent nfs4_op_readdir() call racing with mdcache_inode_create()
call.

The object is created but before the create thread adds it to the
directory cache, nfs4_op_readdir thread adds it causing collision
detection in create thread.

mdcache_dirent_add() is now made to return success on failure
to insert a directory entry due to name collision.

Change-Id: I1d0a9e575f31b888a2f5a025e72e8103c193150a
Signed-off-by: Malahal Naineni <[email protected]>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c
1 file changed, 10 insertions(+), 3 deletions(-)


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d0a9e575f31b888a2f5a025e72e8103c193150a
Gerrit-PatchSet: 1
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Owner: Malahal <[email protected]>

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Nfs-ganesha-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to