Return-Path: linux-nfs-owner@vger.kernel.org Received: from hop-nat-141.emc.com ([168.159.213.141]:42802 "EHLO mexforward.lss.emc.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751213Ab3CTI2q (ORCPT ); Wed, 20 Mar 2013 04:28:46 -0400 From: "Peng, Tao" To: fanchaoting , "Myklebust, Trond" CC: "linux-nfs@vger.kernel.org" Subject: RE: [PATCH] pnfs-block: removing DM device maybe cause oops when call dev_remove Date: Wed, 20 Mar 2013 08:28:18 +0000 Message-ID: <1882637210201641A747464075FFC649025A37EA@MX101CL02.corp.emc.com> References: <51496CC5.7040400@cn.fujitsu.com> In-Reply-To: <51496CC5.7040400@cn.fujitsu.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBsaW51eC1uZnMtb3duZXJAdmdl ci5rZXJuZWwub3JnIFttYWlsdG86bGludXgtbmZzLW93bmVyQHZnZXIua2VybmVsLm9yZ10gT24g QmVoYWxmIE9mDQo+IGZhbmNoYW90aW5nDQo+IFNlbnQ6IFdlZG5lc2RheSwgTWFyY2ggMjAsIDIw MTMgNDowMSBQTQ0KPiBUbzogTXlrbGVidXN0LCBUcm9uZA0KPiBDYzogbGludXgtbmZzQHZnZXIu a2VybmVsLm9yZw0KPiBTdWJqZWN0OiBbUEFUQ0hdIHBuZnMtYmxvY2s6IHJlbW92aW5nIERNIGRl dmljZSBtYXliZSBjYXVzZSBvb3BzIHdoZW4gY2FsbCBkZXZfcmVtb3ZlDQo+IA0KPiB3aGVuIHBu ZnMgYmxvY2sgdXNpbmcgZGV2aWNlIG1hcHBlcixpZiB1bW91bnRpbmcgbGF0ZXIsaXQgbWF5YmUN Cj4gY2F1c2Ugb29wcy4gd2UgYXBwbHkgIjEgKyBzaXplb2YoYmxfdW1vdW50X3JlcXVlc3QpIiBt ZW1vcnkgZ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