Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2022655ybb; Thu, 26 Mar 2020 19:51:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsEWly33TFn48hV8hQc3nwx+vp5Xt0ZNyTiHHGrGHxA11Jf/DXgCwzLWQZ23e3CFObHGUsh X-Received: by 2002:aca:80e:: with SMTP id 14mr2487344oii.143.1585277484564; Thu, 26 Mar 2020 19:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585277484; cv=none; d=google.com; s=arc-20160816; b=XRjVIRE4YCYRncoUxGKj5VNwzSSy1NwHAeUv5Wwrts6pcB5/+CgyGxnh1mpyt/HGGE vQ+0+8IYqPiiWPeqJH4RzYQoR+jnfOOFUcB5XdChEUC6DI0ddeJ3zh3BRHUGFIVuVLLa lS17UJiTO/XNZLOsTa/0GcphIqeEIPoBXXp2GAY5JU37mfzDsLyETF62AMGlDKXEYSUu OjlgCE2zmFbXfOHI16mpy4B7y03W7LR4xCuJftS7g+lLqsxgZLIx0ASS+0u/hYXC3sNb TM/4iLeEa+MXfwZ2Lf87NEn8723fHJeYXspgTPj4jqXwmHK+1b/JN13vUtAk017Gnjp3 CuGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature; bh=KXjmN+364jiyCzv1gWGc+e6yHZaiF4mXo9ppkls1CVs=; b=QBBcwEOZz5AqKErb9WPxnV1eNaiNuS3pUZgfIGBA+sWfKuzffULpOZX2SoLzGI2/JK ETcgCFSCrdthiKhnrP/Uq2Cv536x8M+Sk/BAESLa9E5lSrlRdxg0ajAcAy0dIjIsPR8o R9Fm7xoHipMallubBCf+KEJPf+8H/iOxa+eX3QMNju4SrvjJgFHc7cyQ+NStUpIwr7S8 b4kW+VQYyDbOQ0r+Y5+NhHdfkXSVKzRVRnTQYxTxjI+9VXfT042qVifgwd4DUkzd2cvb llpiW2DIP4elbNvH2EwB6HZXZv1vmO+mfqDsTDy4aD7KtB96HKOAsmNMNmjLgekM58Lc 8Rzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=z3LeB4Ob; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z107si1948849otb.292.2020.03.26.19.51.12; Thu, 26 Mar 2020 19:51:24 -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; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=z3LeB4Ob; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727740AbgC0Cuc (ORCPT + 99 others); Thu, 26 Mar 2020 22:50:32 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:51992 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726363AbgC0Cuc (ORCPT ); Thu, 26 Mar 2020 22:50:32 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02R2nuQ2110950; Fri, 27 Mar 2020 02:50:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2020-01-29; bh=KXjmN+364jiyCzv1gWGc+e6yHZaiF4mXo9ppkls1CVs=; b=z3LeB4Obxsuu4+rII4Lhn6K8jr7JXn79EzVEMgPSUm+giNGJytfnmB2fr3o7E01swRTL e7MHHk2qY7c2r6mwfs+G04HhU4Umfy7BLhnmGcN3cmMI3HCTe6LIITwyhinavsyRx/SD WRkFqX1+GITU9AoSeKzCeoDKQAp74r3IdRgCZEmbFBxD8mSi0vKbcgHf8LWls5nU1cMN TXY4qs0XSwpy8WTJdmnlBMRoWqvbgF93JR4DXoM1YyMh0u2EjE6Hq1y6s8iEtGmCAas1 vjwGDdgWOop03mopSLxU3x4mhNy/vvigCzqyoeShauSfDic3yHwsRo/W4BsgHHTDSxh7 6g== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 3014598qx4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Mar 2020 02:50:12 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02R2nncF122492; Fri, 27 Mar 2020 02:50:12 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 3003gn1ghw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Mar 2020 02:50:12 +0000 Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 02R2oAAL023461; Fri, 27 Mar 2020 02:50:11 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 26 Mar 2020 19:50:10 -0700 To: "wubo \(T\)" Cc: Lee Duncan , Chris Leech , "James E.J. Bottomley" , "Martin K. Petersen" , "linux-scsi\@vger.kernel.org" , "open-iscsi\@googlegroups.com" , "linux-kernel\@vger.kernel.org" , linfeilong , "liuzhiqiang \(I\)" Subject: Re: [PATCH] scsi:libiscsi:Fix an error count for active session From: "Martin K. Petersen" Organization: Oracle Corporation References: Date: Thu, 26 Mar 2020 22:50:07 -0400 In-Reply-To: (wubo's message of "Wed, 25 Mar 2020 06:53:25 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9572 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=999 bulkscore=0 phishscore=0 adultscore=0 spamscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003270022 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9572 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 phishscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 impostorscore=0 mlxscore=0 spamscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003270022 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wubo, > Fix an error count for active session if the total_cmds is invalid on > the function iscsi_session_setup(). decrement the number of active > sessions before the func return. Applied to 5.7/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering