Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 278C1C38142 for ; Sat, 28 Jan 2023 06:52:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233142AbjA1GwA (ORCPT ); Sat, 28 Jan 2023 01:52:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233053AbjA1Gvz (ORCPT ); Sat, 28 Jan 2023 01:51:55 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5736E442CE; Fri, 27 Jan 2023 22:51:53 -0800 (PST) Received: from kwepemm600009.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4P3lRr3VrdzRrDL; Sat, 28 Jan 2023 14:49:44 +0800 (CST) Received: from kwepemm600002.china.huawei.com (7.193.23.29) by kwepemm600009.china.huawei.com (7.193.23.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Sat, 28 Jan 2023 14:51:51 +0800 Received: from kwepemm600002.china.huawei.com ([7.193.23.29]) by kwepemm600002.china.huawei.com ([7.193.23.29]) with mapi id 15.01.2375.034; Sat, 28 Jan 2023 14:51:51 +0800 From: zhongjinghua To: Mike Christie , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "bvanassche@acm.org" , "emilne@redhat.com" , "hare@suse.de" CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "zhangyi (F)" , "yukuai (C)" , "houtao (A)" , yangerkun Subject: =?utf-8?B?562U5aSNOiBbUEFUQ0hdIHNjc2k6IGZpeCBpc2NzaSByZXNjYW4gZmFpbHMg?= =?utf-8?Q?to_create_block?= Thread-Topic: [PATCH] scsi: fix iscsi rescan fails to create block Thread-Index: AQHZKhyR4Le9xCcAm0ekZK9DgjD7Ba6kSOuAgA8kHoA= Date: Sat, 28 Jan 2023 06:51:51 +0000 Message-ID: <40d06d0004354b79989168a90e5d7a60@huawei.com> References: <20230117030114.2131734-1-zhongjinghua@huawei.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.178.159] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGVsbG8sDQoNCldlIGFsc28gd2FudCB0byB3cml0ZSBnZXRfZGV2aWNlX3VubGVzc196ZXJvLCBJ IHdpbGwgdHJ5IHRvIG1ha2UgYSBwYXRjaC4NCg0KSSdtIG5vdCBzdXJlIGlmIHRoaXMgcHJvYmxl bSBleGlzdHMgaW4gb3RoZXIgcGxhY2VzIGFuZCBjYW4gYmUgZml4ZWQgaW4gdGhpcyB3YXksIGJl Y2F1c2Ugd2Ugb25seSB0ZXN0ZWQgdGhpcyBwcm9ibGVtLg0KSSB3YW50IHRvIGZpeCB0aGlzIHBy b2JsZW0gdGhhdCBpcyBub3cgdGVzdGVkIGZpcnN0Lg0KDQpUaGFua3MuDQoNCi0tLS0t6YKu5Lu2 5Y6f5Lu2LS0tLS0NCuWPkeS7tuS6ujogTWlrZSBDaHJpc3RpZSA8bWljaGFlbC5jaHJpc3RpZUBv cmFjbGUuY29tPiANCuWPkemAgeaXtumXtDogMjAyM+W5tDHmnIgxOeaXpSA3OjA3DQrmlLbku7bk uro6IHpob25namluZ2h1YSA8emhvbmdqaW5naHVhQGh1YXdlaS5jb20+OyBqZWpiQGxpbnV4Lmli bS5jb207IG1hcnRpbi5wZXRlcnNlbkBvcmFjb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