Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1062539imm; Thu, 5 Jul 2018 14:02:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdcMY0ICqnrLYVNU4vWqM4GIfAIG7cPuupKE/bx9IRlY7sW8KZcEeUA+vb8qyoUU77tEC/H X-Received: by 2002:a65:60d2:: with SMTP id r18-v6mr2378184pgv.306.1530824527653; Thu, 05 Jul 2018 14:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530824527; cv=none; d=google.com; s=arc-20160816; b=xMYqxshgcnCjChpdMuBTsQGYsXC23XFao5vnuF+pClmvDYMhaeYg/lZUGL/oc4A3My o6gWG2375VoWwxykKXy6GxlRovNeJTnj4zzAJeAlJ9NAYHbblK6N2ov+FbgR4tVhJ9Kf 4EgNjD7380WcNQvW3a2sb4Q4B9nFVCqZfVcXOy0KgNnYCizDGYD0j4+b5VolS1vMtKGj 2+fC/xSgkhkXC5bzcOsvVc72DrQSQ59q2/iG60lhJ3KFst48ZJYNHJetwLRx7Xnn0M0C PM3F1w1VTz5kZ6gqGT8FAnes8b0Hd1c8Yq1n5Q8QtSZ4cP/QhLOc7Qfk6046/di+qXSy G1Rw== 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:arc-authentication-results; bh=CpiktrdEVkas6Tm/GM1yTbg9Sr6QvEGH8//7AhKj1cM=; b=N98oI386eyyDk/Tl+6yN757mPkonWzWoaZg/48M39a/DduWN02rAfaM8BB5IL6gU8T YTc3POSj1lXMWl/TWWy/hg2Z5fe3IREJVaYrGRI1Kzid3AW/YP+hbGJimWW+tv5PLe09 Qu/x0GcJArXISrAn5ij/pGlF7nHC1Zk5uz03gp+MJkl7XCYyADvXtqGG+EpkjSDD3VXC 6L5s9CQEpSIILzHfbGTonIo6krvsoFbvrd5kp35PSsvqJmA8DimkWpIAkk0mqtuVFTgv okBJL/DKBGYFMdbz/I1nxlFjrrV97Vs2joJHxcUkZjCioO4OppkYJC8MUT2OXRSuai64 NSkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HxH+axcw; 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 i1-v6si6395334plt.183.2018.07.05.14.01.47; Thu, 05 Jul 2018 14:02:07 -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=HxH+axcw; 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 S1754226AbeGEVAR (ORCPT + 99 others); Thu, 5 Jul 2018 17:00:17 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45560 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754121AbeGEVAQ (ORCPT ); Thu, 5 Jul 2018 17:00:16 -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=CpiktrdEVkas6Tm/GM1yTbg9Sr6QvEGH8//7AhKj1cM=; b=HxH+axcwfO0DseqXzn+2XkBEp nqNZ7gBMy18PvE3UWHSiSYKC7orWqsB6lOks22N++5xpfTCh4MvsUQHmlORcKCMUT5l15NbTW78P6 5ZlphePrvsuwztDaSF446tb0WM1Ka6FwQRGqrFgWpBfa8PBdBjowKZYJltn7X8aCwNocl3FcXaHKo VcpHGtQdL45bx4yJX0aM0aFye51Zy6gVFhjhYnpo5fEO+j1oerbAaldTMTfEis92TWWrVgGW3HbvO 1BN5zZN88mGAPjYhCrmYXqFsqUjqkbz2tui4ZZwmXQMu9RVyGDYOwkLwb9VFjhIGA2NTe/SYqPJD3 aySbcJz4Q==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbBMF-0001Rh-NC; Thu, 05 Jul 2018 21:00:07 +0000 Date: Thu, 5 Jul 2018 14:00:07 -0700 From: Matthew Wilcox To: Andrew Morton Cc: Johannes Thumshirn , Dan Williams , Ross Zwisler , Vishal Verma , Dave Jiang , Jeff Moyer , Christoph Hellwig , linux-nvdimm , Linux MM , Linux Kernel Mailing List Subject: Re: [PATCH 13/13] libnvdimm, namespace: Publish page structure init state / control Message-ID: <20180705210007.GC28447@bombadil.infradead.org> References: <153077334130.40830.2714147692560185329.stgit@dwillia2-desk3.amr.corp.intel.com> <153077341292.40830.11333232703318633087.stgit@dwillia2-desk3.amr.corp.intel.com> <20180705082931.echvdqipgvwhghf2@linux-x5ow.site> <20180705144941.drfiwhqcnqqorqu3@linux-x5ow.site> <20180705132455.2a40de08dbe3a9bb384fb870@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180705132455.2a40de08dbe3a9bb384fb870@linux-foundation.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 05, 2018 at 01:24:55PM -0700, Andrew Morton wrote: > On Thu, 5 Jul 2018 16:49:41 +0200 Johannes Thumshirn wrote: > > > On Thu, Jul 05, 2018 at 07:46:05AM -0700, Dan Williams wrote: > > > ...but that also allows 'echo "syncAndThenSomeGarbage" > > > > /sys/.../memmap_state' to succeed. > > > > Yep it does :-(. > > > > Damn > > sysfs_streq() Thanks! I didn't know that one existed. It's kind of a shame that we realised this was a problem and decided to solve it this way back in 2008 instead of realising that no driver actually cares whether there's a \n or not and stripping off the \n before the driver gets to see it. Probably too late to fix that now.