From patchwork Thu Mar 16 03:24:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jitendra Bhivare X-Patchwork-Id: 9627047 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 9C34660244 for ; Thu, 16 Mar 2017 03:26:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9234028604 for ; Thu, 16 Mar 2017 03:26:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 870F628637; Thu, 16 Mar 2017 03:26:09 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 353FF28604 for ; Thu, 16 Mar 2017 03:26:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751392AbdCPD0I (ORCPT ); Wed, 15 Mar 2017 23:26:08 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:35720 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751182AbdCPD0B (ORCPT ); Wed, 15 Mar 2017 23:26:01 -0400 Received: by mail-wr0-f177.google.com with SMTP id g10so23124629wrg.2 for ; Wed, 15 Mar 2017 20:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RlxiZecx9STPvWuJASoczihN7DyP1ZUWDVJnm7FIWe4=; b=GBV1Sqq2eaoNLF/P1A1p51Wr/3qvOqlch6NPiq5rfr1jBgqcPR+Raz8wXv2boNyNuL TCjmQAyI5k+I35iBPhBxxhFl1h4f/kPXLhonmewEAb2oG/UPobxej41fooohA7vI775x JVaKsLehKELOCw2WF7fjmKwsuZGZNQlQPAcIs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RlxiZecx9STPvWuJASoczihN7DyP1ZUWDVJnm7FIWe4=; b=uP7kHZ3ezg4ZaIW3Gwjy4JZ486BmX0q0id6A+4+AomUhIKpUkky9fRe9tqg05SU5Es lDDx1ZS3HklvpLZZWrPKb5XkifTla5pbjyCqA/8P09MWBJLjZV9lUGMgjtXyYMjlJ/Ls uHOznEZQA5HAc1ESqHWyEbP/cN5Ervl65xKEJFKxfoAG6R5keN6k7WCPPYx5aZ4ehG9v 78Ch/4pQOpsJd6un6jha8INVRmxledjVO4qzFndI8HaIaY8KaqXqCgg6QxWu66GsYq5q 0+2qqOMz0nwsi/9XfdM+nqECGBvYGmpIk0Ol/vtboZer09g+3/f1s9sG51pGvtSSBo70 2FAA== X-Gm-Message-State: AFeK/H11A2wrrpfNrFXA8dUQaGsH2tLy5MUWPsjSmAnBViMm5heV1E3/C+cvg9BL7H+XJ2JW X-Received: by 10.223.151.45 with SMTP id r42mr5620105wrb.185.1489634721027; Wed, 15 Mar 2017 20:25:21 -0700 (PDT) Received: from android.dhcp.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id l21sm4454655wrl.59.2017.03.15.20.25.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Mar 2017 20:25:20 -0700 (PDT) From: Jitendra Bhivare To: cleech@redhat.com, lduncan@suse.com Cc: linux-scsi@vger.kernel.org, Jitendra Bhivare Subject: [PATCH v2 03/10] be2iscsi: Replace spin_unlock_bh with spin_lock Date: Thu, 16 Mar 2017 08:54:38 +0530 Message-Id: <1489634685-4975-4-git-send-email-jitendra.bhivare@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489634685-4975-1-git-send-email-jitendra.bhivare@broadcom.com> References: <1489634685-4975-1-git-send-email-jitendra.bhivare@broadcom.com> 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 spin_unlock_bh back_lock is used in beiscsi_eh_device_reset instead of spin_lock. Signed-off-by: Jitendra Bhivare Reviewed-by: Tomas Henzl --- drivers/scsi/be2iscsi/be_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 32b2713..ff48573 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -337,7 +337,7 @@ static int beiscsi_eh_device_reset(struct scsi_cmnd *sc) inv_tbl->task[nents] = task; nents++; } - spin_unlock_bh(&session->back_lock); + spin_unlock(&session->back_lock); spin_unlock_bh(&session->frwd_lock); rc = SUCCESS;