lkml.org 
[lkml]   [2013]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: VFS deadlock ?
From
On Thu, Mar 21, 2013 at 12:29 PM, Al Viro <viro@zeniv.linux.org.uk> wrote:
>
> #0 oddity aside, that looks very much like directory aliased by two different
> dentries. Try to add
> BUG_ON(p1->d_inode == p2->d_inode);
> just before
> mutex_lock(&p1->d_inode->i_sb->s_vfs_rename_mutex);
> and see if it triggers.

Don't do a BUG_ON(), instead do something like

if (WARN_ON_ONCE(p1->d_inode == p2->d_inode)) {
printk("pi=%s p2=%s\n", pi->d_name, p2->d_name);
mutex_lock_nested(&p1->d_inode->i_mutex, I_MUTEX_PARENT);
return NULL;
}

so that we actually see where it is. I'm assuming it's some sysfs oddity again..

Linus


\
 
 \ /
  Last update: 2013-03-21 22:04    [W:0.073 / U:0.720 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site