Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3513940ybd; Fri, 28 Jun 2019 09:54:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqygy2APbWEn41rvWPP44A4ICU8RMGPvA0AqKiKYr/bdjcNd92xDLfCNy2I8UQzgVLUBviIJ X-Received: by 2002:a63:7d18:: with SMTP id y24mr10168265pgc.438.1561740886038; Fri, 28 Jun 2019 09:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561740886; cv=none; d=google.com; s=arc-20160816; b=YtJVx1GUbsHh4JASYseyYNn+FXAJQ2vnQntwIO3/o659m+XAc9VNWMfmsyka8dhO97 KQrFUWXKysi2Qo012yEJLw+6HkfyinoGqk19i3A7IzNpd7AC73hMRDjCkMIDdUO3e7aW LEjIuwykaDqbfNFQahnUc9EBcwlb6VBuY39N+elklIrIjRkQOG7R45UEP4NJvZrIiaCt 4fmdq4cTKxozWP27HOt5dKublCia6UKGjRRlGy8nPecvdnXMFxZcLVpESNEIVYrcaIfT MpMT3xU8sRXRekQaN6YypZV4bWEErWsMH9ruGLsAUb/A3nZGuEuG4Qpn5Pphkt/LW9Vk xEKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4aCzK6AWV7v8l05GIE3EDguMtt1Ba9XnxuuiQ3Rlk3Q=; b=TvkQTQHL09iAlnnq6cYeVUF5f1+v+9vunsQcvkweRHaVFP4BE4jDEWbCU/yJzPE1vD En1It5BqWF03paMhiD5zsDInGyk4DHRc0h+kjdTj4X/tzbcC3DikYs2XocZB4cmJ3PEA JbV1NdixlQCK0bN/TEV6IfeSd6SZZCYi3ePZAY1NDriEl8vDYeD4IV6y/oTiWTqP+hw5 us1whUpbyPaDJ40Qsjo8WBT5OBC8UixpgXyV/aScxFqZzw0oaUSkdppGc46mdcuGdHFF tir6n4zvzhnxFTgf1MjjxHJ5sbK4HbtCKlJPOG52upUjB2kopEDMmlqrLJeHgAOT5mrD JUqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Z8w/Lg4I"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 74si2551400pgc.595.2019.06.28.09.54.29; Fri, 28 Jun 2019 09:54:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Z8w/Lg4I"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726851AbfF1QyT (ORCPT + 99 others); Fri, 28 Jun 2019 12:54:19 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38532 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726605AbfF1QyT (ORCPT ); Fri, 28 Jun 2019 12:54:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4aCzK6AWV7v8l05GIE3EDguMtt1Ba9XnxuuiQ3Rlk3Q=; b=Z8w/Lg4IyFUwGyPbT6LlhpKWU wUw/qfThpPpDK1EVkDTJ1UJiw38r1aWCtwbytMCtGAED4QvCWUMKs5Oh/6QO0Wybph75WFSCNiE4z SSCY5E2KKmjqFf4YfC/RXkZbftMs0PDsnBkPp83MsdPmHC1whEcp4+szoDy/HcGbBBak06He3xVFX Dv2t+nDoKM8qsnEYpPu09UUtlaDwdS+RkH8iyE0U10HWCA+u5ZYlH/WcMlbenvCowHplBHyZKDmM9 2YOpnvA7s/rZiLu/O8vCEzzqGKQwJz/jt4166JDneHDGirGpfGEMfS4Uo/xcZIJl7ErIdb9zvCDZq /5Yxuz+9w==; Received: from willy by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hgu8f-0002TR-BH; Fri, 28 Jun 2019 16:54:17 +0000 Date: Fri, 28 Jun 2019 09:54:17 -0700 From: Matthew Wilcox To: Dan Williams Cc: linux-nvdimm , Jan Kara , stable , Robert Barror , Seema Pandit , linux-fsdevel , Linux Kernel Mailing List Subject: Re: [PATCH] filesystem-dax: Disable PMD support Message-ID: <20190628165417.GD4286@bombadil.infradead.org> References: <156159454541.2964018.7466991316059381921.stgit@dwillia2-desk3.amr.corp.intel.com> <20190627123415.GA4286@bombadil.infradead.org> <20190627195948.GB4286@bombadil.infradead.org> <20190628163721.GC4286@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 28, 2019 at 09:39:01AM -0700, Dan Williams wrote: > On Fri, Jun 28, 2019 at 9:37 AM Matthew Wilcox wrote: > > That was the conclusion I came to; that one thread holding the mmap sem > > for read isn't being woken up when it should be. Just need to find it ... > > obviously it's something to do with the PMD entries. > > Can you explain to me one more time, yes I'm slow on the uptake on > this, the difference between xas_load() and xas_find_conflict() and > why it's ok for dax_lock_page() to use xas_load() while > grab_mapping_entry() uses xas_find_conflict()? When used with a non-zero 'order', xas_find_conflict() will return an entry whereas xas_load() might return a pointer to a node. dax_lock_page() always uses a zero order, so they would always do the same thing (xas_find_conflict() would be less efficient).