[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140823171056.GE13540@mtj.dyndns.org>
Date: Sat, 23 Aug 2014 13:10:56 -0400
From: Tejun Heo <tj@...nel.org>
To: Christoph Lameter <cl@...ux.com>
Cc: akpm@...ux-foundation.org, laijs@...fujitsu.com,
linux-kernel@...r.kernel.org, vgoyal@...hat.com,
stable@...r.kernel.org
Subject: Re: [PATCH 02/15] percpu: perform tlb flush after pcpu_map_pages()
failure
On Sat, Aug 23, 2014 at 10:40:29AM -0500, Christoph Lameter wrote:
> On Fri, 22 Aug 2014, Tejun Heo wrote:
>
> > If pcpu_map_pages() fails midway, it unmaps the already mapped pages.
> > Currently, it doesn't flush tlb after the partial unmapping. This may
> > be okay in most cases as the established mapping hasn't been used at
> > that point but it can go wrong and when it goes wrong it'd be
> > extremely difficult to track down.
>
> So why is this separate? You added the unmapping in the last patch without
> the flushing and this is a fixup for the patch before?
This was originally separated out so that flushes can be done once per
chunk as some of the flushes involve sending IPIs to all CPUs. After
this patchset, more of alloc/free logic is implemented in the percpu
core so it probably would be better to expose the flush interface too
so that all can be driven from the core.
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists