Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1719659

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

From Dave Chinner <david@fromorbit.com>
Newsgroups linux.kernel
Subject Re: [PATCH] xfs: Drop setting redundant PF_KSWAPD in kswapd context
Date 2017-08-25 02:10 +0200
Message-ID <uiame-5bk-11@gated-at.bofh.it> (permalink)
References <uhXS1-5i7-1@gated-at.bofh.it> <uhY1I-5ln-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 inside kswapd context. So drop this
> > redundant flag addition.
> 
> I am not familiar with the code but your change seems incorect. The
> whole point of args->kswapd is to convey the kswapd context to the
> worker which is obviously running in a different context. So this patch
> loses the kswapd context.

Yup. That's what the code does, and removing the PF_KSWAPD from it
will break it.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] xfs: Drop setting redundant PF_KSWAPD in kswapd context Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2017-08-24 12:50 +0200
  Re: [PATCH] xfs: Drop setting redundant PF_KSWAPD in kswapd context Michal Hocko <mhocko@kernel.org> - 2017-08-24 13:00 +0200
    Re: [PATCH] xfs: Drop setting redundant PF_KSWAPD in kswapd context Dave Chinner <david@fromorbit.com> - 2017-08-25 02:10 +0200
      Re: [PATCH] xfs: Drop setting redundant PF_KSWAPD in kswapd context Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2017-08-25 06:10 +0200

csiph-web