sdcardfs: Move directory unlock before touch
authorDaniel Rosenberg <drosen@google.com>
Mon, 26 Sep 2016 21:48:22 +0000 (14:48 -0700)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:18 +0000 (18:03 +0200)
commit7b7e36ed043d4e978d700638d63366bf032143b7
tree50c934f9c3a921482c01af5e7cf47723f68342c0
parent22649c0484978078d0eed636835f4ed5379e269a
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