ANDROID: sdcardfs: Move directory unlock before touch
authorDaniel Rosenberg <drosen@google.com>
Mon, 26 Sep 2016 21:48:22 +0000 (14:48 -0700)
committerDaniel Rosenberg <drosen@google.com>
Tue, 30 Jan 2018 03:40:01 +0000 (19:40 -0800)
commit54fe8067b855b980ae124ff19182785c7151aac5
tree7ed208c93dd24407c6741e126340842f3533976e
parent5be1f4d4ca439e111414d42465cd5da59c8a08c7
ANDROID: sdcardfs: Move directory unlock before touch

This removes a deadlock under low memory conditions.
filp_open can call lookup_slow, which will attempt to
lock the parent.

Change-Id: I940643d0793f5051d1e79a56f4da2fa8ca3d8ff7
Signed-off-by: Daniel Rosenberg <drosen@google.com>
fs/sdcardfs/inode.c