Re: [PATCH 3/3] mm, thp: make swapin readahead under down_read of mmap_sem

From: Michal Hocko
Date: Mon May 23 2016 - 14:42:53 EST


On Mon 23-05-16 20:14:11, Ebru Akagunduz wrote:
> Currently khugepaged makes swapin readahead under
> down_write. This patch supplies to make swapin
> readahead under down_read instead of down_write.

You are still keeping down_write. Can we do without it altogether?
Blocking mmap_sem of a remote proces for write is certainly not nice.
--
Michal Hocko
SUSE Labs