[PATCH] fuse: avoid deadlock by clearing __GFP_FS

2020-09-25 Thread jing . xia . mail
From: Jing Xia Writeback thread and fuse block each other. Writeback thread waits fuse's reply with inode's I_SYNC being held.Fuse enters the slowpath of memory allocation when handle the request and has to wait the inode's I_SYNC is cleared. writeback's backtrace - PID

Re: [PATCH] staging: android: ion: Use low_order_gfp_flags for smaller allocations

2019-02-13 Thread jing xia
Thanks. On Thu, Feb 14, 2019 at 2:27 AM Laura Abbott wrote: > > On 2/11/19 11:09 PM, Jing Xia wrote: > > gfp_flags is always set high_order_gfp_flags even if allocations of > > order 0 are made.But for smaller allocations, the system should be able > > to reclaim some me

[PATCH] staging: android: ion: Use low_order_gfp_flags for smaller allocations

2019-02-11 Thread Jing Xia
gfp_flags is always set high_order_gfp_flags even if allocations of order 0 are made.But for smaller allocations, the system should be able to reclaim some memory. Signed-off-by: Jing Xia Reviewed-by: Yuming Han Reviewed-by: Zhaoyang Huang Reviewed-by: Orson Zhai --- drivers/staging/android

[PATCH] mm: memcg: fix use after free in mem_cgroup_iter()

2018-07-19 Thread Jing Xia
red in iter->position, which has been freed before and filled with POISON_FREE(0x6b). And the root cause of the use-after-free issue is that invalidate_reclaim_iterators() fails to reset the value of iter->position to NULL when the css of the memcg is released in non- hierarchical mode. Signed-off

[PATCH] mm: memcg: fix use after free in mem_cgroup_iter()

2018-07-19 Thread Jing Xia
red in iter->position, which has been freed before and filled with POISON_FREE(0x6b). And the root cause of the use-after-free issue is that invalidate_reclaim_iterators() fails to reset the value of iter->position to NULL when the css of the memcg is released in non- hierarchical mode. Signed-off

Re: dm bufio: Reduce dm_bufio_lock contention

2018-06-14 Thread jing xia
Thank for your comment,I appreciate it. On Wed, Jun 13, 2018 at 5:20 AM, Mike Snitzer wrote: > On Tue, Jun 12 2018 at 4:03am -0400, > Jing Xia wrote: > >> Performance test in android reports that the phone sometimes gets >> hanged and shows black screen for about severa

Re: dm bufio: Reduce dm_bufio_lock contention

2018-06-14 Thread jing xia
Thank for your comment,I appreciate it. On Wed, Jun 13, 2018 at 5:20 AM, Mike Snitzer wrote: > On Tue, Jun 12 2018 at 4:03am -0400, > Jing Xia wrote: > >> Performance test in android reports that the phone sometimes gets >> hanged and shows black screen for about severa