From patchwork Fri Mar 24 08:41:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jitendra Bhivare X-Patchwork-Id: 9642391 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 8A45C60327 for ; Fri, 24 Mar 2017 08:42:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82929212E8 for ; Fri, 24 Mar 2017 08:42:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75C8228339; Fri, 24 Mar 2017 08:42:39 +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 0D7D3212E8 for ; Fri, 24 Mar 2017 08:42:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756543AbdCXImi (ORCPT ); Fri, 24 Mar 2017 04:42:38 -0400 Received: from mail-qk0-f179.google.com ([209.85.220.179]:34809 "EHLO mail-qk0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754246AbdCXImc (ORCPT ); Fri, 24 Mar 2017 04:42:32 -0400 Received: by mail-qk0-f179.google.com with SMTP id p64so5690704qke.1 for ; Fri, 24 Mar 2017 01:42:13 -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=wJMFFrjr2WRuCwOyLJEattHcGL01NMEQKl5xL1rMvPk=; b=D4oPIvyKG8QOhS9jZ2fUukfdWZnDKJT8F6TfAqfzMKSUEZAM4hBPT0odiym3WvKPnz XQ+GFReVjc7/N5wXR/syW7UqKPXgPN0syesQDPpkfNQ9s22KOkFneqztQUNBpTpkAOzG mH1jD/qMSiSHGdUuFN6GywTC4AYH4AjU+6tMo= 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=wJMFFrjr2WRuCwOyLJEattHcGL01NMEQKl5xL1rMvPk=; b=NTLds0stIsH61Uy+mUFrG7aPHZZKpsr8m8wHQFZDbA7CTjFtAxBz7i3F4jctdtc7qv feqdt6IpixgJcD7we1iln/x0QW6rRkjX2NibEullneDv5COkVq4pQzGThASo2GmKfaQf jyTTZmZeuN0Yc30rhrYEVvkI3+iAqr7/ALjyZ04efcqnIE75OMfbfz6Ps+WeIXnA9XD8 Qlx4DlS9maSKUEEs1hAmkTJ3+hoTGKUp/wJW58QmP+1RdighcquWn2hKKd3k4FK6xu4M oPPwVVFDNsgr3ReH+2RprPTM1UiqQ1dYFZu/dxDzwItoGJxWUwBZ7+4F7I8+dsHlnG3I Ou2g== X-Gm-Message-State: AFeK/H28vSw+UBStY1cElfMn0Td7N13IHsE9BuaIrzx4Cp/yIwCUfoevVY0IH3zZliOAROvB X-Received: by 10.55.9.149 with SMTP id 143mr5857660qkj.148.1490344932860; Fri, 24 Mar 2017 01:42:12 -0700 (PDT) Received: from android.lvn.broadcom.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id n21sm1080395qkh.16.2017.03.24.01.42.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Mar 2017 01:42:12 -0700 (PDT) From: Jitendra Bhivare To: thenzl@redhat.com, cleech@redhat.com, lduncan@suse.com Cc: linux-scsi@vger.kernel.org, Jitendra Bhivare Subject: [PATCH v3 03/10] be2iscsi: Replace spin_unlock_bh with spin_lock Date: Fri, 24 Mar 2017 14:11:42 +0530 Message-Id: <1490344909-29541-4-git-send-email-jitendra.bhivare@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490344909-29541-1-git-send-email-jitendra.bhivare@broadcom.com> References: <1490344909-29541-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 tomash --- 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;