mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-11 05:12:12 -05:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The negative lower dentry created by vfs_path_lookup could be reclaimed between vfs_path_lookup and d_hash_and_lookup. Therefore, it is unsafe to just lookup dcache again for the negative dentry cases. Without this patch, users could occasionally get trapped into `failed to create' under memory pressure. So here is a workaround to hack it and in my opinion sdcardfs should be refactored to close all races in the long term as pointed out in the code comment of this commit. Test: (Thread 1) while true; do echo 3 > /proc/sys/vm/drop_caches done (Thread 2) i=0 while true; do echo 123 > /sdcard/$i i=$((i+1)) done Bug: 63872684 Cc: Daniel Rosenberg <[email protected]> Cc: Miao Xie <[email protected]> Cc: Chao Yu <[email protected]> Change-Id: Ic033e1f84a8b271c1f48010f4e1f189982bbbea2 Signed-off-by: Gao Xiang <[email protected]> Signed-off-by: Daniel Rosenberg <[email protected]> (cherry picked from commit bd77267426ed5ffe6a25aa77c149cde28f479f95) |
||
| .. | ||
| dentry.c | ||
| derived_perm.c | ||
| file.c | ||
| inode.c | ||
| Kconfig | ||
| lookup.c | ||
| main.c | ||
| Makefile | ||
| mmap.c | ||
| multiuser.h | ||
| packagelist.c | ||
| sdcardfs.h | ||
| super.c | ||