Description of problem: fsync fop fails with EBADFD error. Running iozone or simply an application which does fsync on a fd will get EBADFD. Also attempt to debug it by taking statedump results in a deadlock and the glusterfs process hangs. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Also log files complain about write-behind not implementing the forget. [2012-08-09 06:51:56.332677] W [defaults.c:1260:default_forget] (-->/usr/local/lib/libglusterfs.so.0(inode_unref+0x6 1) [0x7f3d45b7bc3d] (-->/usr/local/lib/libglusterfs.so.0(+0x336d4) [0x7f3d45b7d6d4] (-->/usr/local/lib/libglusterfs. so.0(+0x31830) [0x7f3d45b7b830]))) 0-mirror-write-behind: xlator does not implement forget_cbk
CHANGE: http://review.gluster.org/3795 (performance/write-behind: avoid deadlock while taking the statedump of fds) merged in master by Anand Avati (avati)