[Ocfs2-devel] [Ocfs2-users] ocfs or configfs bug ?
Sunil Mushran
sunil.mushran at oracle.com
Tue Apr 19 17:20:10 PDT 2011
On 04/19/2011 12:48 PM, Joel Becker wrote:
> You're too late here. This is in the echo process (bash,
> really). getdents() isn't happening.
> The problem is almost certainly in configfs. It's a race
> between setup and teardown of the virtual attribute files. If anyone
> else has a cycle to look at it, great, otherwise I'll try to get to it
> later this week.
So we ran into it internally. This is what I wrote in the bug.
/@ The matching code in configfs_readir() is:/
/@ name = configfs_get_name(next);/
/@ len = strlen(name);/
/@ if (next->s_dentry)/
/@ ino = next->s_dentry->d_inode->i_ino; <===/
/@ else/
/@ ino = iunique(configfs_sb, 2);/
/@ ./
/@ if (filldir(dirent, name, len, filp->f_pos, ino,/
/@ dt_type(next)) < 0)/
/@ return 0;/
/@ ./
/@ The oops indicates that next->s_dentry->d_inode is NULL./
Joel, does this give you any clues?
BTW, thanks for the testcase. And yes, I can reproduce it easily.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20110419/6b6d3b34/attachment.html
More information about the Ocfs2-devel
mailing list