Files
android_kernel_xiaomi_sm8450/fs/ext3
Jan Kara ae54870a1d ext3: Fix lock inversion in ext3_symlink()
ext3_symlink() cannot call __page_symlink() with transaction open.
__page_symlink() calls ext3_write_begin() which gets page lock which ranks
above transaction start (thus lock ordering is violated) and and also
ext3_write_begin() waits for a transaction commit when we run out of space
which never happens if we hold transaction open.

Fix the problem by stopping a transaction before calling __page_symlink()
(we have to be careful and put inode to orphan list so that it gets deleted
in case of crash) and starting another one after __page_symlink() returns
for addition of symlink into a directory.

Signed-off-by: Jan Kara <jack@suse.cz>
2011-04-29 23:20:03 +02:00
..
2011-03-31 11:26:23 -03:00
2007-10-17 08:42:47 -07:00
2010-03-05 00:20:30 +01:00
2010-09-16 20:52:58 +02:00
2010-07-23 12:50:55 +02:00
2005-10-30 17:37:25 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-05-21 18:31:19 -04:00
2010-05-21 18:31:19 -04:00