From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753122AbbIXU0Y (ORCPT ); Thu, 24 Sep 2015 16:26:24 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:37488 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751770AbbIXU0X (ORCPT ); Thu, 24 Sep 2015 16:26:23 -0400 Date: Thu, 24 Sep 2015 23:26:20 +0300 From: "Kirill A. Shutemov" To: Christoph Lameter Cc: "Kirill A. Shutemov" , Andrew Morton , Andrea Arcangeli , Hugh Dickins , Dave Hansen , Mel Gorman , Rik van Riel , Vlastimil Babka , Naoya Horiguchi , Steve Capper , "Aneesh Kumar K.V" , Johannes Weiner , Michal Hocko , Jerome Marchand , Sasha Levin , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 04/16] page-flags: define PG_locked behavior on compound pages Message-ID: <20150924202620.GA25005@node.dhcp.inet.fi> References: <20150921153509.fef7ecdf313ef74307c43b65@linux-foundation.org> <1443106264-78075-1-git-send-email-kirill.shutemov@linux.intel.com> <1443106264-78075-5-git-send-email-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2015 at 11:08:29AM -0500, Christoph Lameter wrote: > On Thu, 24 Sep 2015, Kirill A. Shutemov wrote: > > > SLUB uses PG_locked as a bit spin locked. IIUC, tail pages should never > > appear there. VM_BUG_ON() is added to make sure that this assumption is > > correct. > > Correct. However, VM_BUG_ON is superfluous. If there is a tail page there > then the information in the page will be not as expected (free list > parameter f.e.) and things will fall apart rapidly with segfaults. Right. But would it provide any clues on what is going on? -- Kirill A. Shutemov