On Fri, May 14, 2021 at 03:46:57PM +0000, Trond Myklebust wrote: > Why leave the commit_metadata() call under the lock? If you're > concerned about latency, then it makes more sense to call fh_unlock() > before flushing those metadata updates to disk. Also I'm not sure why the extra inode reference is needed. What speaks against just moving the dput out of the locked section?