Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbdFQAgA (ORCPT ); Fri, 16 Jun 2017 20:36:00 -0400 Received: from g2t2352.austin.hpe.com ([15.233.44.25]:18974 "EHLO g2t2352.austin.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752234AbdFQAf4 (ORCPT ); Fri, 16 Jun 2017 20:35:56 -0400 From: "Kani, Toshimitsu" To: Dan Williams CC: Vishal L Verma , "Knippers, Linda" , "linux-nvdimm@lists.01.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2] libnvdimm, pmem: Add sysfs notifications to badblocks Thread-Topic: [PATCH v2] libnvdimm, pmem: Add sysfs notifications to badblocks Thread-Index: AQHS48rXHia2DqmigUe4/diXsaUyG6ImdmGAgAG8HmA= Date: Sat, 17 Jun 2017 00:35:52 +0000 Message-ID: References: <20170612222511.22030-1-toshi.kani@hpe.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=hpe.com; x-originating-ip: [106.143.130.118] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CS1PR84MB0070;7:XSj3yxivDMPzTAp4eQ96FV8LXmrix1M7dwm3Jh8t9Kjp1+wWaKKl8saE5DLv0UhezJcR3chq2VZCBi8/8jTBiNvQ3BfRso8sRT3iO6tVrok/9WO3/+wr7ZBsAPiJRJnBopjC2cWM3VFfPg0lxUH0QHwMvOBwsTyHG6BVj2kHe/G+mo0bYs9efiI36ohx8UaatgrcSAMwBfByUZnJvmOEoUaxtrE+0Bx3Gr8/GKaxTG6daFGSbrtVGKu+JM0LB1B3UWGlG5V5i1YqJzsJgoDBedB/6P4A7CEic4qJACI5F8B1Rk2Anw0beViaooWnxOOdI8ZWjKe+4rEz9enRRYQwaIhkbgxs5dOOyCpSunr5D9vaF2f6UzZbzGmR5zSfSWCAFDaqnSOvkcVG7fVRLzzVrjf0HEq13+RrGNTEJsJoP2/KoazuD1P407wmgFzSpopDmsVUG1EEIP0iJbnlWOBYUdluQL2inQpHFFsV5gwOa6tDUWmshhOh1e94918ZvlraYp0SKbCr3t8c57jg6WDbnkyinqUNE9OBJ8lx9CiIY94BUcNZjcv/APjNn6/lMbVPo1TVEhhNLS3qVCEoXy3jsq04OLxI22Yro+ps7Xe6HdCuX6n4dd20FSa1k0c4UX5b38rQxJkF+y2BliOGCCZUTv/e1v/MeZy3EBI5XGpkc7KT6fGb7jEbBv83Sbizd8lTnUDjZiIFTAtbs3byF35b0O+KJuSh5YkEJebjhElMmgHEHKYv6O2Y/yputCHezPdLJ2kK9hZLSZOc0FFCovOVZic+Q81dcvFaf0tvMCJFiu4= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10019020)(6009001)(39400400002)(39450400003)(39410400002)(39860400002)(39850400002)(39840400002)(24454002)(377454003)(305945005)(229853002)(3846002)(74316002)(7696004)(5890100001)(6116002)(86362001)(102836003)(7736002)(6506006)(77096006)(5660300001)(6436002)(14454004)(189998001)(66066001)(25786009)(53546009)(122556002)(2950100002)(55016002)(99936001)(54906002)(2900100001)(8676002)(8936002)(33656002)(6916009)(38730400002)(110136004)(6246003)(3660700001)(15650500001)(81166006)(3280700002)(478600001)(53936002)(54356999)(50986999)(76176999)(2906002)(4326008)(9686003);DIR:OUT;SFP:1102;SCL:1;SRVR:CS1PR84MB0070;H:CS1PR84MB0104.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;MLV:sfv;LANG:en; x-ms-office365-filtering-correlation-id: 599dab14-94fc-4332-e6a8-08d4b518cf56 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075);SRVR:CS1PR84MB0070; x-ms-traffictypediagnostic: CS1PR84MB0070: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(227479698468861)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(102415395)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CS1PR84MB0070;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CS1PR84MB0070; x-forefront-prvs: 034119E4F6 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/mixed; boundary="_002_CS1PR84MB0104A87F4AAB23AADF88656282C60CS1PR84MB0104NAMP_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2017 00:35:52.7878 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR84MB0070 X-OriginatorOrg: hpe.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3812 Lines: 58 --_002_CS1PR84MB0104A87F4AAB23AADF88656282C60CS1PR84MB0104NAMP_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 PiBPbiBNb24sIEp1biAxMiwgMjAxNyBhdCAzOjI1IFBNLCBUb3NoaSBLYW5pIDx0b3NoaS5rYW5p QGhwZS5jb20+IHdyb3RlOg0KPiA+IFN5c2ZzICJiYWRibG9ja3MiIGluZm9ybWF0aW9uIG1heSBi ZSB1cGRhdGVkIGR1cmluZyBydW4tdGltZSB0aGF0Og0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hlZCB0ZXN0DQpwcm9ncmFtIGZvciB5b3VyIHNhbml0eSB0ZXN0cz8g IEl0IHNpbXBseSBtb25pdG9ycyBzeXNmcyBub3RpZmljYXRpb25zDQphbmQgcHJpbnRzIGJhZGJs b2NrcyBpbmZvLi4uICBTb3JyeSBmb3IgaW5jb252ZW5pZW5jZS4NCg0KU2luY2UgSSBhbSBub3Qg ZmFtaWxpYXIgd2l0aCB0aGUgbmRjdGwgdW5pdCB0ZXN0cyBhbmQgSSBhbSB0cmF2ZWxpbmcgZm9y DQp0aGUgcmVzdCBvZiB0aGUgbW9udGgsIEkgbWF5IGhhdmUgdG8gbG9vayBpbnRvIGl0IGFmdGVy IEkgYW0gYmFjay4NCg0KVGhhbmtzIQ0KLVRvc2hpDQoNCg0K --_002_CS1PR84MB0104A87F4AAB23AADF88656282C60CS1PR84MB0104NAMP_ Content-Type: text/plain; name="test_sysfs_notify.c" Content-Description: test_sysfs_notify.c Content-Disposition: attachment; filename="test_sysfs_notify.c"; size=1160; creation-date="Sat, 17 Jun 2017 00:03:55 GMT"; modification-date="Fri, 16 Jun 2017 23:04:01 GMT" Content-Transfer-Encoding: base64 LyoKICogQ29weXJpZ2h0IChDKSAyMDE3ICBIZXdsZXR0IFBhY2thcmQgRW50ZXJwcmlzZSBEZXZl bG9wbWVudCBMUAogKgogKiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTsgeW91IGNhbiBy ZWRpc3RyaWJ1dGUgaXQgYW5kL29yCiAqIG1vZGlmeSBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhl IEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlCiAqIGFzIHB1Ymxpc2hlZCBieSB0aGUgRnJlZSBT b2Z0d2FyZSBGb3VuZGF0aW9uOyBlaXRoZXIgdmVyc2lvbiAyCiAqIG9mIHRoZSBMaWNlbnNlLCBv ciAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLgogKi8KI2luY2x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