From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272AbcFAVjj (ORCPT ); Wed, 1 Jun 2016 17:39:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42586 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720AbcFAVjh (ORCPT ); Wed, 1 Jun 2016 17:39:37 -0400 Date: Wed, 1 Jun 2016 14:39:36 -0700 From: Andrew Morton To: Minchan Kim Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: Re: [PATCH v7 11/12] zsmalloc: page migration support Message-Id: <20160601143936.a7ad8eec093514e3ee54cc62@linux-foundation.org> In-Reply-To: <1464736881-24886-12-git-send-email-minchan@kernel.org> References: <1464736881-24886-1-git-send-email-minchan@kernel.org> <1464736881-24886-12-git-send-email-minchan@kernel.org> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 1 Jun 2016 08:21:20 +0900 Minchan Kim wrote: > This patch introduces run-time migration feature for zspage. > > ... > > +static void kick_deferred_free(struct zs_pool *pool) > +{ > + schedule_work(&pool->free_work); > +} When CONFIG_ZSMALLOC=m, what keeps all the data structures in place during a concurrent rmmod?