xfs
[Top] [All Lists]

Don't use d_alloc_anon for open_by_handle

To: xfs-dev@xxxxxxx
Subject: Don't use d_alloc_anon for open_by_handle
From: xaiki@xxxxxxx
Date: Fri, 2 May 2008 11:55:37 +1000
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20080501070244.GH108924158@sgi.com>
References: <20080501070244.GH108924158@sgi.com>
Sender: xfs-bounce@xxxxxxxxxxx
One of our DMAPI user found that in some cases inodes weren't getting through
xfs_inactive() in any reasonable amount of time. Investigation tracked it down
to the use of d_alloc_anon() combined with another thread accessing the same
inode via an open().

So we introduce a stripped down version of d_alloc_anon, that won't try to find
an existing dentry, nor will hash it.


<Prev in Thread] Current Thread [Next in Thread>