Thread (49 messages) 49 messages, 8 authors, 2017-02-02

Re: [PATCH v7 11/12] zsmalloc: page migration support

From: Minchan Kim <minchan@kernel.org>
Date: 2016-06-02 00:14:32
Also in: lkml

On Wed, Jun 01, 2016 at 02:39:36PM -0700, Andrew Morton wrote:
On Wed,  1 Jun 2016 08:21:20 +0900 Minchan Kim [off-list ref] wrote:
quoted
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?
The most of data structure in zram start to work by user calling
zs_create_pool and user of zsmalloc should call zs_destroy_pool
before trying doing rmmod where zs_unregister_migration does
flush_work(&pool->free_work).

If I miss something, please let me know it.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help