Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4154861ybg; Tue, 29 Oct 2019 03:01:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKXN19aVJRDg4dE7K/W/5FU2CLbKPqrkkfMXp2sFjf7pXYDhFLWINxo2CPN3TI0KUVlUnK X-Received: by 2002:a17:906:2351:: with SMTP id m17mr2281355eja.153.1572343290717; Tue, 29 Oct 2019 03:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572343290; cv=none; d=google.com; s=arc-20160816; b=tqw7KNQUvcPV5L8g8cczVXTOfiBGBgPeYryUYdvPoag2EgH6RWbgJeDeAbf7LqySbh 8DpZA7DChxFA/7IE6MLrbfgu9O9zQrtvWfcjTPi+OOX0rKrODtCFns9sPJTZTAuQ4aqy F7dMIuMg0afVGPbPiy4s99yv/Sic/y6qJNaxJ8lGv7me9jSB3NqgGLnQIlg3Lkjpi7vf Meg9BhLPCVMQDD1F+4/BGA48Bcc5cz/nBZ+18GgEY/Bo/FxcsI+TW7tD471Cp33KlpY6 Ttcq8u3JtcvBt9aHKWleDI7cUtM+VLfoqpl0jPyg7o8UhCJUysT/mkXssN1n1VzQ3WFG 6wng== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=lyAyJRkpigONUPDASaHcWHqOXAyQ9OWX6Q5/fY2LZwA=; b=lCuFwwOn8pjVO4EQl0y22e9jfxlVcwmgmbW1UjmTsMZe8natzmqVITnH+tFdU1IlTi oQ3zmACSaQXYqGm0X5wQPDKZhPYpkdiZ+CHS5RKl6tgndfKt487TLF7Rbt9j1pQBlt6L LHc0MpetnGEBmbjyuPKI2EIk+cxZUXzE3ZXgRFf2XzliPJBm2OdQpIuld+7u4Z4oDj5n jlBFZYCMSLoLaQWkG0kpt4cKZjgUQdtAQ6CnQP9F+PzwdqBkMIYWzWW0322evaI85WYp 0tSMIlHmXAR8RBgkS+wfd7TiEwueQTINHPQNfGGv7YVQmu7s95RLuC5kgRT2JhOQnSmH N2/Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h90si9926276edd.178.2019.10.29.03.01.07; Tue, 29 Oct 2019 03:01:30 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728714AbfJ2IIC (ORCPT + 99 others); Tue, 29 Oct 2019 04:08:02 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:2442 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727331AbfJ2IIC (ORCPT ); Tue, 29 Oct 2019 04:08:02 -0400 Received: from DGGEML402-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id 25E316BDF6AE21D87397; Tue, 29 Oct 2019 16:07:59 +0800 (CST) Received: from DGGEML421-HUB.china.huawei.com (10.1.199.38) by DGGEML402-HUB.china.huawei.com (10.3.17.38) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 29 Oct 2019 16:07:57 +0800 Received: from DGGEML505-MBS.china.huawei.com ([169.254.11.138]) by dggeml421-hub.china.huawei.com ([10.1.199.38]) with mapi id 14.03.0439.000; Tue, 29 Oct 2019 16:07:51 +0800 From: "wubo (T)" To: Lee Duncan , "cleech@redhat.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "open-iscsi@googlegroups.com" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Mingfangsen , "liuzhiqiang (I)" Subject: =?utf-8?B?562U5aSNOiBbUEFUQ0hdIHNjc2k6IGF2b2lkIHBvdGVudGlhbCBkZWFkbG9v?= =?utf-8?B?cCBpbiBpc2NzaV9pZl9yeCBmdW5j?= Thread-Topic: [PATCH] scsi: avoid potential deadloop in iscsi_if_rx func Thread-Index: AdWL2reJ1uh470cQT+idNsWy+95OAQB3236AAByqm6A= Date: Tue, 29 Oct 2019 08:07:49 +0000 Message-ID: References: <92b221da-18a8-8b7b-0436-ca59088fd45b@suse.com> In-Reply-To: <92b221da-18a8-8b7b-0436-ca59088fd45b@suse.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.173.221.252] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMjAxOS8xMC8yOSAyOjA0LCBMZWUgRHVuY2FuIHdyb3RlOg0KPiBPbiAxMC8yNi8xOSAxOjU1 IEFNLCB3dWJvIChUKSB3cm90ZToNCj4+IEZyb206IEJvIFd1IDx3dWJvNDBAaHVhd2VpLmNvbT4N Cj4+DQo+PiBJbiBpc2NzaV9pZl9yeCBmdW5jLCBhZnRlciByZWNlaXZpbmcgb25lIHJlcXVlc3Qg dGhyb3VnaCANCj4+IGlzY3NpX2lmX3JlY3ZfbXNnIGZ1bmMsaXNjc2lfaWZfc2VuZF9yZXBseSB3 aWxsIGJlIGNhbGxlZCB0byB0cnkgdG8gDQo+PiByZXBseSB0aGUgcmVxdWVzdCBpbiBkby1sb29w LiBJZiB0aGUgcmV0dXJuIG9mIGlzY3NpX2lmX3NlbmRfcmVwbHkgDQo+PiBmdW5j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