From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by kanga.kvack.org (Postfix) with ESMTP id 5C1C16B0035 for ; Tue, 7 Jan 2014 21:44:30 -0500 (EST) Received: by mail-wg0-f52.google.com with SMTP id b13so663364wgh.19 for ; Tue, 07 Jan 2014 18:44:29 -0800 (PST) Received: from mail-ee0-x230.google.com (mail-ee0-x230.google.com [2a00:1450:4013:c00::230]) by mx.google.com with ESMTPS id ge7si42898wic.56.2014.01.07.18.44.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jan 2014 18:44:29 -0800 (PST) Received: by mail-ee0-f48.google.com with SMTP id e49so399649eek.7 for ; Tue, 07 Jan 2014 18:44:28 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <52CC16DC.9070308@suse.cz> References: <1387267550-8689-1-git-send-email-liwanp@linux.vnet.ibm.com> <52b1138b.0201430a.19a8.605dSMTPIN_ADDED_BROKEN@mx.google.com> <52B11765.8030005@oracle.com> <52b120a5.a3b2440a.3acf.ffffd7c3SMTPIN_ADDED_BROKEN@mx.google.com> <52B166CF.6080300@suse.cz> <52b1699f.87293c0a.75d1.34d3SMTPIN_ADDED_BROKEN@mx.google.com> <20131218134316.977d5049209d9278e1dad225@linux-foundation.org> <52C71ACC.20603@oracle.com> <52C74972.6050909@suse.cz> <6B2BA408B38BA1478B473C31C3D2074E2BF812BC82@SV-EXCHANGE1.Corp.FC.LOCAL> <52CC16DC.9070308@suse.cz> Date: Wed, 8 Jan 2014 10:44:28 +0800 Message-ID: Subject: Re: [PATCH] mm/mlock: fix BUG_ON unlocked page for nolinear VMAs From: Linus Torvalds Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Vlastimil Babka Cc: Motohiro Kosaki , Andrew Morton , Sasha Levin , Wanpeng Li , Michel Lespinasse , Bob Liu , Nick Piggin , Motohiro Kosaki JP , Rik van Riel , David Rientjes , Mel Gorman , Minchan Kim , Hugh Dickins , Johannes Weiner , linux-mm , Linux Kernel Mailing List , Joonsoo Kim On Tue, Jan 7, 2014 at 11:01 PM, Vlastimil Babka wrote: > > So here's a patch that if accepted should replace the removal of BUG_ON patch in > -mm tree: http://ozlabs.org/~akpm/mmots/broken-out/mm-remove-bug_on-from-mlock_vma_page.patch > > The idea is that try_to_unmap_cluster() will try locking the page > for mlock, and just leave it alone if lock cannot be obtained. Again > that's not fatal, as eventually something will encounter and mlock the page. This looks sane to me. Andrew? Linus -- 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: email@kvack.org