Hi All,

I am writing VFS layer for VxFS for Ganesha 2.4. While writing I am getting EIO error on Ganesha NFS V4 Server.


Problem:
In function fsal_rdwr(), if the file is already open then it does not open the file which races with the another thread closing the file.
Hence I got EIO error on the NFS client and EBADF on NFS server.

To fix this read write issue in fsal_rdwr(), Do I need to take lock similar to how FSAL_VFS is taking ?


In NFS Ganesha 2.4, I found FSAL_VFS is taking lock in read/write and open/close.
488         /* Take read lock on object to protect file descriptor. */                                                 
489         PTHREAD_RWLOCK_rdlock(&obj_hdl->lock); 

But I did not find any other FSAL like GPFS, CEPH is taking lock in read/write and open/close.


Thanks,
Vaibhav.
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to