Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp640376ybi; Fri, 12 Jul 2019 02:14:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXOr39mjQ8Pk1kx0yuY4cpnx9L3aOXzKwG2QY1tJD7mkXrrf6jSOmut9cB5QRRcBF1p1pU X-Received: by 2002:a17:90a:3651:: with SMTP id s75mr10196096pjb.13.1562922891817; Fri, 12 Jul 2019 02:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562922891; cv=none; d=google.com; s=arc-20160816; b=kMujqBHkk3jwlrwFiWvV6Ajw6YGqaPqGT9mJpp/1lGbz9tze01J5qFbK3xdYqO49Lp B3kwX3bxgXT9gDbF5Co7gLHMUBNo1BlCK96BzgmGxlp8sZEQGEdM5wwGg2JpSkgLdgmv JgxA+O0B70tNdXgY2CE/w4skm5k+tidjtyo8HDXcEMSN9kpYpTrautZbJiaE+hAsPD5F fD5CqnhDu9/RVdYplBpBcqYYP2nJ06ds9DD6IQsgU6YnVGLLpGy/SdmV3jVkTBgWV9Ik luchz87ROzYv6mRYzOi9cUqOUx5UN57sDfRpWWnst5x9RtVA3PjqG0aKZt7ZWyVpjfLo gpPw== 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; bh=twqTYBo76jUUT69spdzhgHmtcK4f9b+E/YdBZIYXqZk=; b=OK+f770ESOzDZtEhIkf1kycfxSQ0XEQ47Zbc0+zINhvwx85U0Uy6wzoySzW7GcDY9R r3kG7R0TZmn+9bXvIp7Z87Xbnf+PVdlNoPWedgQwDCObPkqPajtwMIOFrht+8k38si5Q gt2ue+ZhGnaJukmpZuWROgXXepwSi805bj6JicDjXHJhlUkT+ILoz4mTUI2zZipuMi0z iiQPBQ0nbmF50kcMA9/2+SwuBD8kSxdUmPMpghnJitoWWwzU9w1a9yI1laGXI8Cmg5wW 5ap2QIqjAxoV9eNRoumiqcneQ3D9MlRCzHbpQV62pUFP/C6es6dVQ102yUbOwFx0sxcp aTPA== ARC-Authentication-Results: i=1; mx.google.com; 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 y7si8465965pgj.486.2019.07.12.02.14.36; Fri, 12 Jul 2019 02:14:51 -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; 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 S1726689AbfGLJN5 (ORCPT + 99 others); Fri, 12 Jul 2019 05:13:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:54274 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726138AbfGLJN5 (ORCPT ); Fri, 12 Jul 2019 05:13:57 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 93769AC63; Fri, 12 Jul 2019 09:13:55 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 3D21A1E43CB; Thu, 11 Jul 2019 17:41:11 +0200 (CEST) Date: Thu, 11 Jul 2019 17:41:11 +0200 From: Jan Kara To: Matthew Wilcox Cc: Jan Kara , Dan Williams , linux-fsdevel , Boaz Harrosh , stable , Robert Barror , Seema Pandit , linux-nvdimm , Linux Kernel Mailing List Subject: Re: [PATCH] dax: Fix missed PMD wakeups Message-ID: <20190711154111.GA29284@quack2.suse.cz> References: <20190704165450.GH31037@quack2.suse.cz> <20190704191407.GM1729@bombadil.infradead.org> <20190705191004.GC32320@bombadil.infradead.org> <20190710190204.GB14701@quack2.suse.cz> <20190710201539.GN32320@bombadil.infradead.org> <20190710202647.GA7269@quack2.suse.cz> <20190711141350.GS32320@bombadil.infradead.org> <20190711152550.GT32320@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190711152550.GT32320@bombadil.infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 11-07-19 08:25:50, Matthew Wilcox wrote: > On Thu, Jul 11, 2019 at 07:13:50AM -0700, Matthew Wilcox wrote: > > However, the XA_RETRY_ENTRY might be a good choice. It doesn't normally > > appear in an XArray (it may appear if you're looking at a deleted node, > > but since we're holding the lock, we can't see deleted nodes). > ... > @@ -254,7 +267,7 @@ static void wait_entry_unlocked(struct xa_state *xas, void *entry) > static void put_unlocked_entry(struct xa_state *xas, void *entry) > { > /* If we were the only waiter woken, wake the next one */ > - if (entry) > + if (entry && dax_is_conflict(entry)) This should be !dax_is_conflict(entry)... > dax_wake_entry(xas, entry, false); > } Otherwise the patch looks good to me so feel free to add: Reviewed-by: Jan Kara once you fix this. Honza -- Jan Kara SUSE Labs, CR