From patchwork Wed Mar 13 14:07:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tangwenji X-Patchwork-Id: 10851163 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 543461575 for ; Wed, 13 Mar 2019 14:07:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EE7E292D0 for ; Wed, 13 Mar 2019 14:07:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33049293CB; Wed, 13 Mar 2019 14:07:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1E0128952 for ; Wed, 13 Mar 2019 14:07:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726803AbfCMOHs (ORCPT ); Wed, 13 Mar 2019 10:07:48 -0400 Received: from m12-11.163.com ([220.181.12.11]:53052 "EHLO m12-11.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726799AbfCMOHr (ORCPT ); Wed, 13 Mar 2019 10:07:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=JRZocIOzfpBDeQFXfl tWjc8G1EumZ7r18uR1jJ1XvmA=; b=cVFwOW/xCP5Cufc2S/4vT9VyblsTPoSZwp YezJviicnldEIjHBbDH/pawEts0yutD1UJTS5LBNIH2G8j1kNBSqAoq4E/mHlrIW Mdd+twa70Rb4tCvGe4n2aMuGj9nj9rO5uR1cGbl23Nr5Ngj1JyDajk2cfO5X0gK4 WDrOp00Ks= Received: from localhost.localdomain (unknown [113.246.161.214]) by smtp7 (Coremail) with SMTP id C8CowAAHeemqDolcTY5zCA--.9686S2; Wed, 13 Mar 2019 22:07:40 +0800 (CST) From: tangwenji To: "Martin K. Petersen" Cc: target-devel@vger.kernel.org, tangwenji Subject: [PATCH] target:alua: fix the tg_pt_gps_count Date: Wed, 13 Mar 2019 22:07:26 +0800 Message-Id: <1552486046-1360-1-git-send-email-hndksztwj@163.com> X-Mailer: git-send-email 2.5.0.windows.1 X-CM-TRANSID: C8CowAAHeemqDolcTY5zCA--.9686S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7GrW7Gr17JFW5AF4fWrWDtwb_yoWfJrc_ur 18t39F9rs3uryDKr4jyFn7Zryrtwn3ZrsYqa10va12qrnrXr1Yk34kJ3ZrZ3s3C393Xr4F 9342gr43Za1rtjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUnEJPtUUUUU== X-Originating-IP: [113.246.161.214] X-CM-SenderInfo: 5kqgy2h2wzyqqrwthudrp/1tbiHQx2Q1SIdnJiFAAAsK Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: tangwenji Reducing the count should be alua_tg_pt_gps_count instead of alua_tg_pt_gps_counter when free alua group. Signed-off-by: tangwenji --- drivers/target/target_core_alua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/target_core_alua.c b/drivers/target/target_core_alua.c index e09f0cf..4808654 100644 --- a/drivers/target/target_core_alua.c +++ b/drivers/target/target_core_alua.c @@ -1761,7 +1761,7 @@ void core_alua_free_tg_pt_gp( */ spin_lock(&dev->t10_alua.tg_pt_gps_lock); list_del(&tg_pt_gp->tg_pt_gp_list); - dev->t10_alua.alua_tg_pt_gps_counter--; + dev->t10_alua.alua_tg_pt_gps_count--; spin_unlock(&dev->t10_alua.tg_pt_gps_lock); /*