From patchwork Wed May 2 20:31:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Vagin X-Patchwork-Id: 10376429 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D355B60384 for ; Wed, 2 May 2018 20:31:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C13BE29005 for ; Wed, 2 May 2018 20:31:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B340529008; Wed, 2 May 2018 20:31:22 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 B98E829005 for ; Wed, 2 May 2018 20:31:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751121AbeEBUbU (ORCPT ); Wed, 2 May 2018 16:31:20 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:32912 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750939AbeEBUbS (ORCPT ); Wed, 2 May 2018 16:31:18 -0400 Received: by mail-pg0-f65.google.com with SMTP id i194-v6so11461251pgd.0; Wed, 02 May 2018 13:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=nLfNNjZI9dDh3A+ZIvtLmWOyTZEsBzkuQ4n0u5T0FuY=; b=jI5T+XLEHAGce/jRczCHUAlynF0KplKnv+O80gK4h4THbCscweGYr5lHDYEMmzCNN5 QKmvWRbdWId1/0Rfn3XiBYemcZtNJSSY8mR//yg+sXEr+Ad3TSJtZaOrhtCH5kYiGMcR i+AzwM/hzZEOg+4s0af8Jjf5zbSX6x+UG//hbNv91aYvlcnXzWQdTRKn92A15sSHbgm7 crOFVf05jZ7pEJlvqTxRfsmZcPI4C7dLnFcfDpk/WBVBHLhRmhPeYm4FvcZZk4EZeWVh nKUvssXy0GD7d+jEYqg/IAGYXm+gxb01LXr7yR9rl4ZgIZYLfRulxcXgacEAIPeOXwVj wvnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=nLfNNjZI9dDh3A+ZIvtLmWOyTZEsBzkuQ4n0u5T0FuY=; b=kghE2JAZgQw15wg862odQI7Rp5v/f7mgi3j6ngxe4L9OTz7Yha8owZUU83N8VXlQ8v A5yrp8HstbXiRu9vQuxiAn0rssMreNSFXIRkv/LVbHs8TkV4WSwLiKO2sdZODh1aOP6x sUc+tiCwazrI9FRpxFQWrIRbD8UPUXhHZc10MXnIiz5S3ijmGlSjXIPqgQUSBJgo+kOD ArheQ5TZv1mnKi466GSyqS4KUB/Ev+J42Rsl0ezucu40Hl8xI8AxtEhC62wDwuvLO2Uj /fAASkMNSCFMgHJmXeKDAKbKIm7BC/Jym2ZkFLm/3bE1tmMOGdWiUwur6lnsTjcI4bY4 4ZJw== X-Gm-Message-State: ALQs6tB/HtaJEdypr9n955NDfPtwnJBHMapDaZf6gBcAyYSV4vHUUW3U +0TSdnasTu1a0tZXX7DiBAdBAmXn X-Google-Smtp-Source: AB8JxZoRzVzviweIVMwibyVwvm4WspVScj1VmC1br7p4QbXPiiG6fSue3iFHIUYYV2T68mMm9TmBHg== X-Received: by 2002:a17:902:8c91:: with SMTP id t17-v6mr21757639plo.182.1525293078132; Wed, 02 May 2018 13:31:18 -0700 (PDT) Received: from laptop.corp.parallels.com ([4.16.175.162]) by smtp.gmail.com with ESMTPSA id e17sm11149338pfn.67.2018.05.02.13.31.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 May 2018 13:31:17 -0700 (PDT) From: Andrei Vagin To: qla2xxx-upstream@qlogic.com Cc: linux-scsi@vger.kernel.org, "James E.J. Bottomley" , "Martin K. Petersen" , linux-kernel@vger.kernel.org, Andrei Vagin Subject: [PATCH] scsi: qla2xxx: remove the unused tcm_qla2xxx_cmd_wq Date: Wed, 2 May 2018 13:31:13 -0700 Message-Id: <20180502203113.13183-1-avagin@openvz.org> X-Mailer: git-send-email 2.14.3 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Andrei Vagin Reviewed-by: Laurence Oberman --- drivers/scsi/qla2xxx/tcm_qla2xxx.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c b/drivers/scsi/qla2xxx/tcm_qla2xxx.c index aadfeaac3898..b63440fec18e 100644 --- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c +++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c @@ -48,7 +48,6 @@ #include "tcm_qla2xxx.h" static struct workqueue_struct *tcm_qla2xxx_free_wq; -static struct workqueue_struct *tcm_qla2xxx_cmd_wq; /* * Parse WWN. @@ -1976,16 +1975,8 @@ static int tcm_qla2xxx_register_configfs(void) goto out_fabric_npiv; } - tcm_qla2xxx_cmd_wq = alloc_workqueue("tcm_qla2xxx_cmd", 0, 0); - if (!tcm_qla2xxx_cmd_wq) { - ret = -ENOMEM; - goto out_free_wq; - } - return 0; -out_free_wq: - destroy_workqueue(tcm_qla2xxx_free_wq); out_fabric_npiv: target_unregister_template(&tcm_qla2xxx_npiv_ops); out_fabric: @@ -1995,7 +1986,6 @@ static int tcm_qla2xxx_register_configfs(void) static void tcm_qla2xxx_deregister_configfs(void) { - destroy_workqueue(tcm_qla2xxx_cmd_wq); destroy_workqueue(tcm_qla2xxx_free_wq); target_unregister_template(&tcm_qla2xxx_ops);