]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
reiserfs: Fix softlockup while waiting on an inode
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 11 Feb 2010 12:13:10 +0000 (13:13 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 14 Feb 2010 18:07:56 +0000 (19:07 +0100)
commit175359f89df39f4faed663c8cfd6ee0222d2fa1e
tree8a5da216333192e7c2d605e1644f6bead22cdd06
parentbbec919150037b8a2e58e32d3ba642ba3b6582a5
reiserfs: Fix softlockup while waiting on an inode

When we wait for an inode through reiserfs_iget(), we hold
the reiserfs lock. And waiting for an inode may imply waiting
for its writeback. But the inode writeback path may also require
the reiserfs lock, which leads to a deadlock.

We just need to release the reiserfs lock from reiserfs_iget()
to fix this.

Reported-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Tested-by: Christian Kujau <lists@nerdbynature.de>
Cc: Chris Mason <chris.mason@oracle.com>
fs/reiserfs/inode.c