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 stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html