[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180129143522.68a5332ae80d28461441a6be@linux-foundation.org>
Date: Mon, 29 Jan 2018 14:35:22 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: "Zi Yan" <zi.yan@...rutgers.edu>
Cc: "Michal Hocko" <mhocko@...nel.org>,
"Naoya Horiguchi" <n-horiguchi@...jp.nec.com>,
"Kirill A. Shutemov" <kirill@...temov.name>,
"Vlastimil Babka" <vbabka@...e.cz>,
"Andrea Reale" <ar@...ux.vnet.ibm.com>,
"Anshuman Khandual" <khandual@...ux.vnet.ibm.com>,
linux-mm@...ck.org, LKML <linux-kernel@...r.kernel.org>,
"Michal Hocko" <mhocko@...e.com>
Subject: Re: [PATCH 1/3] mm, numa: rework do_pages_move
On Mon, 29 Jan 2018 17:06:14 -0500 "Zi Yan" <zi.yan@...rutgers.edu> wrote:
> I discover that this patch does not hold mmap_sem while migrating pages in
> do_move_pages_to_node().
>
> A simple fix below moves mmap_sem from add_page_for_migration()
> to the outmost do_pages_move():
I'm not surprised. Why does do_move_pages_to_node() need mmap_sem
and how is a reader to discover that fact???
Powered by blists - more mailing lists