Messages in this thread | | | From | Linus Torvalds <> | Date | Wed, 6 Jun 2012 18:40:23 -0700 | Subject | Re: processes hung after sys_renameat, and 'missing' processes |
| |
On Wed, Jun 6, 2012 at 6:19 PM, Dave Jones <davej@redhat.com> wrote: > > ok, I ended up with.. > > WARN_ON_ONCE(!mutex_is_locked(&target->d_parent->d_inode->i_mutex)); > > if (dentry->d_parent != NULL) > WARN_ON_ONCE(!mutex_is_locked(&dentry->d_inode->i_mutex));
It should just be something like
WARN_ON_ONCE(!mutex_is_locked(&dentry->d_parent->d_inode->i_mutex)); WARN_ON_ONCE(!mutex_is_locked(&target->d_parent->d_inode->i_mutex));
(And doing it as two separate ones rather than one that tests both is probably a good idea, so that you see *which* one it is that triggers if they do)
Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |