Skip to content
Commit 4d20c685 authored by Kalpak Shah's avatar Kalpak Shah Committed by Theodore Ts'o
Browse files

ext4: fix xattr deadlock



ext4_xattr_set_handle() eventually ends up calling
ext4_mark_inode_dirty() which tries to expand the inode by shifting
the EAs.  This leads to the xattr_sem being downed again and leading
to a deadlock.

This patch makes sure that if ext4_xattr_set_handle() is in the
call-chain, ext4_mark_inode_dirty() will not expand the inode.

Signed-off-by: default avatarKalpak Shah <kalpak.shah@sun.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 45a90bfd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment