From patchwork Tue Mar 14 08:01:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jitendra Bhivare X-Patchwork-Id: 9622651 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 373E860244 for ; Tue, 14 Mar 2017 08:02:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 270542808F for ; Tue, 14 Mar 2017 08:02:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BF862811C; Tue, 14 Mar 2017 08:02:06 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 B6CCE2808F for ; Tue, 14 Mar 2017 08:02:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750899AbdCNICF (ORCPT ); Tue, 14 Mar 2017 04:02:05 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:38090 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750886AbdCNICE (ORCPT ); Tue, 14 Mar 2017 04:02:04 -0400 Received: by mail-wm0-f52.google.com with SMTP id t189so57133124wmt.1 for ; Tue, 14 Mar 2017 01:02:03 -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=OjOVQ48OTLfNtkgkWLQ3b70TDjXpjt/G7tExuzXcQO40nGAM8l3sP02TA/7dxd4jZW 3I30KDrYAlZflei8e0f54VF2A1EnldCVaZuVLKKz/dcXoeLEZfqvLfZuRMlJlsz2QZQx Tn8YraNO8obffHuxOoy/0iNuMTmj/vB5dMsao= 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=TUqq3Ly0DNoplgN8BEY0K2+B5NAxgLivLDyvSYUgNMSmwNx44d/Vs1xiN4SiZcEfqh 77bhKShPzoaBg88oeAQ/z1Ra5drvo7jkoeZNogr6ZOytNZw6KyrS+7TlRgpvcVy3eSoV NH4fd1hQ8Bv8V991PhA/AGBrKWvwPZulXnHkyEsrARZ3mmTNL9o4U5vbVIycaMUwWDjC GmKbBqFoQnuj2TK9gisSsebLmYlbkKt0Heffx5eKIeRFlxgvV0jALaKlyuQIDAmVy/G+ xy70GRgbc69d3MYid8/1Hw8dD9GZ0dGP8fHrAoIFfQTa/aeI24XK5a0DImdtd6NSvb6Z gn1A== X-Gm-Message-State: AFeK/H1VNiEyDr1PptKKlmnpD5v1GoZ4BgwmHuPT/M0WG7RKn64DU55rdT4OzD0VJvfYxod0 X-Received: by 10.28.24.5 with SMTP id 5mr12789722wmy.1.1489478522831; Tue, 14 Mar 2017 01:02:02 -0700 (PDT) Received: from android.dhcp.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id 63sm28112281wrh.68.2017.03.14.01.01.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Mar 2017 01:02:02 -0700 (PDT) From: Jitendra Bhivare To: cleech@redhat.com, lduncan@suse.com Cc: linux-scsi@vger.kernel.org, Jitendra Bhivare Subject: [PATCH 3/9] be2iscsi: Replace spin_unlock_bh with spin_lock Date: Tue, 14 Mar 2017 13:31:28 +0530 Message-Id: <1489478494-5432-4-git-send-email-jitendra.bhivare@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489478494-5432-1-git-send-email-jitendra.bhivare@broadcom.com> References: <1489478494-5432-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 --- 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;