Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp66344ybi; Thu, 20 Jun 2019 17:58:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6+SrOgpch6Bt90jkqyzILX6Z1ApCUpZeB2iJyt9Ma+886OUQuNYmw0uTVaEGgA9A2Kua2 X-Received: by 2002:a17:902:ac1:: with SMTP id 59mr50406154plp.168.1561078705149; Thu, 20 Jun 2019 17:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561078705; cv=none; d=google.com; s=arc-20160816; b=BMpxHvJpvjY4o3srIFn4LWOjsQRIdzidG93/V1jZXV/Re1gBwY47IYdl54jIwyslJ7 wExqyouDmapNmi+VQokE36P4Qzg4kzrBVhv/cAxRvGC+6UDN6JcgkhYiJMtL0o8v94je bDrNX4QjdqThq4Xz4e10q6TV3ve4NPlCAbiEaHVdzH2/+SQEYABnitYkHEwS3WG8YYu3 NbAJNoHqczzdRhrlppL+Cd6THdOYDuRQFKtEyi6f4+r5UuGFBoRhC94pq/D9JIe7M6wz RsgUy8Uie3kE8wwW4dHq0dLDcPYGh3qtuXNt1yg3Egsrxev/G5Gaz26HvwPkgRNJHiq7 h7/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from; bh=UYrDb/fa5PMK6o2RJMAgE6B9ZfJq/vIU5BvIHLP3HU8=; b=nLcCIxaAuTzm2qFUc1jW0DDyIHsCPRN1xN4V8V21/xC1lE95wL31S+6cMxUJ49xGAM CyZ3x8HGbLnQ4u7GD+Rl6X2NZ468tJo6hbe4Cu+yYz2GdJ0bYNs2miAYiZXIYeUPJ1zG ptatEZuvlpX32+tHF0LmQzMH9KR1F0Jd9/Gw1Rwpj0vg74FvaPbHGAorq6MMnFlBC/id 9OfD9+FjU3e7fb/k6bHXjCB4pONs+6NyZvNX6BBbrpGjTtNytEIsZL2VUgZSszD2tfEn JpCHn9HsMNLqPyDKWzNfkjnxRil16oCUo8A0vz78HecGK357wEhgzyfAQGPU6q8dEMdu Clvw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si1163304pfq.70.2019.06.20.17.58.09; Thu, 20 Jun 2019 17:58:25 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726274AbfFUA40 (ORCPT + 99 others); Thu, 20 Jun 2019 20:56:26 -0400 Received: from mga18.intel.com ([134.134.136.126]:42259 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbfFUA40 (ORCPT ); Thu, 20 Jun 2019 20:56:26 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2019 17:56:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,398,1557212400"; d="scan'208";a="168677239" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by FMSMGA003.fm.intel.com with ESMTP; 20 Jun 2019 17:56:25 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 20 Jun 2019 17:56:25 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.157]) by fmsmsx116.amr.corp.intel.com ([169.254.2.126]) with mapi id 14.03.0439.000; Thu, 20 Jun 2019 17:56:24 -0700 From: "Verma, Vishal L" To: "Williams, Dan J" , "linux-nvdimm@lists.01.org" CC: "linux-kernel@vger.kernel.org" , "peterz@infradead.org" , "stable@vger.kernel.org" Subject: Re: [PATCH 3/6] libnvdimm/region: Register badblocks before namespaces Thread-Topic: [PATCH 3/6] libnvdimm/region: Register badblocks before namespaces Thread-Index: AQHVIK8OAb/oFHOwOkmDOgZcKMJ7d6alzEWA Date: Fri, 21 Jun 2019 00:56:24 +0000 Message-ID: <76314eeafb50c74afbc77156f65cee2c0949478b.camel@intel.com> References: <156029554317.419799.1324389595953183385.stgit@dwillia2-desk3.amr.corp.intel.com> <156029555941.419799.6074744061405561526.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <156029555941.419799.6074744061405561526.stgit@dwillia2-desk3.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.30.5 (3.30.5-1.fc29) x-originating-ip: [10.232.112.185] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDE5LTA2LTExIGF0IDE2OjI1IC0wNzAwLCBEYW4gV2lsbGlhbXMgd3JvdGU6DQo+ IE5hbWVzcGFjZSBhY3RpdmF0aW9uIGV4cGVjdHMgdG8gYmUgYWJsZSB0byByZWZlcmVuY2UgcmVn aW9uIGJhZGJsb2Nrcy4NCj4gVGhlIGZvbGxvd2luZyB3YXJuaW5nIH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