Re: [PATCH] xfs: Drop setting redundant PF_KSWAPD in kswapd context

2017-08-24 Thread Anshuman Khandual
On 08/25/2017 05:31 AM, Dave Chinner wrote: > On Thu, Aug 24, 2017 at 12:56:35PM +0200, Michal Hocko wrote: >> On Thu 24-08-17 16:12:47, Anshuman Khandual wrote: >>> xfs_btree_split() calls xfs_btree_split_worker() with args.kswapd set >>> if current->flags alrady has PF_KSWAPD. Hence we should not

Re: [PATCH] xfs: Drop setting redundant PF_KSWAPD in kswapd context

2017-08-24 Thread Dave Chinner
On Thu, Aug 24, 2017 at 12:56:35PM +0200, Michal Hocko wrote: > On Thu 24-08-17 16:12:47, Anshuman Khandual wrote: > > xfs_btree_split() calls xfs_btree_split_worker() with args.kswapd set > > if current->flags alrady has PF_KSWAPD. Hence we should not again add > > PF_KSWAPD into the current flags

Re: [PATCH] xfs: Drop setting redundant PF_KSWAPD in kswapd context

2017-08-24 Thread Michal Hocko
On Thu 24-08-17 16:12:47, Anshuman Khandual wrote: > xfs_btree_split() calls xfs_btree_split_worker() with args.kswapd set > if current->flags alrady has PF_KSWAPD. Hence we should not again add > PF_KSWAPD into the current flags inside kswapd context. So drop this > redundant flag addition. I am

[PATCH] xfs: Drop setting redundant PF_KSWAPD in kswapd context

2017-08-24 Thread Anshuman Khandual
xfs_btree_split() calls xfs_btree_split_worker() with args.kswapd set if current->flags alrady has PF_KSWAPD. Hence we should not again add PF_KSWAPD into the current flags inside kswapd context. So drop this redundant flag addition. Signed-off-by: Anshuman Khandual --- fs/xfs/libxfs/xfs_btree.c