lkml.org 
[lkml]   [2016]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 09/10] huge pagecache: mmap_sem is unlocked when truncation splits pmd
On Tue, Apr 05, 2016 at 01:55:23PM -0700, Hugh Dickins wrote:
> zap_pmd_range()'s CONFIG_DEBUG_VM !rwsem_is_locked(&mmap_sem) BUG()
> will be invalid with huge pagecache, in whatever way it is implemented:
> truncation of a hugely-mapped file to an unhugely-aligned size would
> easily hit it.

We can reproduce this BUG() in the current Linus tree with DAX PMDs.
Andrew, can you send this patch to Linus for inclusion in 4.7?

Tested-by: Matthew Wilcox <willy@linux.intel.com>

\
 
 \ /
  Last update: 2016-04-14 20:01    [W:0.222 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site