pranithk: I've seen that there's another ec_sleep() called inside the inode lock. I'm not sure if this is right, but if it's, the solution would be to move the ec_sleep() call in ec_lock() inside the locked region