[PATCH-Review] f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read

2018-03-16 Thread Ritesh Harjani
Hello, Observed below deadlock with quota enabled on f2fs during low memory situation. I think during f2fs_quota_enable -> which is doing read_cache_page with __GFP_FS flag set, due to low memory this is causing shrinker to get invoked and thus going into a deadlock due to mutex lock in dquota.

[PATCH-Review] f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read

2018-03-16 Thread Ritesh Harjani
Hello, Observed below deadlock with quota enabled on f2fs during low memory situation. I think during f2fs_quota_enable -> which is doing read_cache_page with __GFP_FS flag set, due to low memory this is causing shrinker to get invoked and thus going into a deadlock due to mutex lock in dquota.