Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1783914ybv; Sun, 23 Feb 2020 15:19:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxFNfrXAU/CQcMAcAF+AvGyGtCgSgJTiLtd3A1az9+QtCr7QFiSATmZs7PSEY2uAgCr8x+r X-Received: by 2002:a9d:768b:: with SMTP id j11mr22222084otl.278.1582499940627; Sun, 23 Feb 2020 15:19:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582499940; cv=none; d=google.com; s=arc-20160816; b=OF1Y9gE54RXh2+Nl1OdhMTEIu+CD1UtPUVItUW2F/0qfN7egQoDDMxKiKvAg/mK7km R6t/fcVZxYRzJQhT2sCx4Vywq2xBmOI/zw6BDs1N3rhQsY7qvUOHfL22gGVdiNJFN6LZ EUWM3McuqDJXRRg47hw6FP5MBK6iI0Y1Ox5X8UnZ+ZGxugESu/qoKiC+3mPo4OLSzIlD PfpKWLYk1rgKatyObmcTxroVLi2O/nqi2pPt/4qkNoB/2dpk8qHIx6drYCGPd3FkvGDw uCo9zwr+qfUogvNsIhPqWePYdg/rI8VViYQgy1+DtLKw8lAfch6kYNklKZeTy1FT1Pt4 hopA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Qy7AvatIqffY4xvh/iJWRifOixdLsIdAN4n8+psibAI=; b=E2+8N+p1sxlGImQOh4/7zGwsuupzYEWYjFrgLgrBb3qnesx6gHx5++ycA7UIUIiYC+ fY0NzodweEVTac6stsKUWHQInbj3a3FU2NkB/lyXLhKBj7Wj0MM+omONLNnQQgPLgJ/c 11SD/yPWfrISCueCpFEw9e3X8rdZg7kcjIIo6/Q/4qGfgOi0mE2p4siotaK9xBL8NTDX LIBxQ1tA+EUvOgrhIKU8puwCU/Og2Fd6KQwWhCvFB3fKYS90JGDQVAw22Q4dhYbttjAl pQmvFyJ/zwqVVQAck0RITSUW7TuE2WmutRuyvdrZo+rvQYGZydIjRxpVshEadlF/8LDN AgUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="fyRR9/wO"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si5266702otm.263.2020.02.23.15.18.49; Sun, 23 Feb 2020 15:19:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="fyRR9/wO"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727740AbgBWXSY (ORCPT + 99 others); Sun, 23 Feb 2020 18:18:24 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35689 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727691AbgBWXSW (ORCPT ); Sun, 23 Feb 2020 18:18:22 -0500 Received: by mail-wr1-f67.google.com with SMTP id w12so8248053wrt.2; Sun, 23 Feb 2020 15:18:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qy7AvatIqffY4xvh/iJWRifOixdLsIdAN4n8+psibAI=; b=fyRR9/wOz6/pueORMQ9XChTVG1DxK0ngllIHnUr5GLw7QNP8uIt7JavJM48/c6DK3f PRl7n2OWBd+vW9WVy4xLzApenTBuRzO85PMsnPeuRtMCAJSjRDUsFkb/cCUdCYE5UeUx 2d4hRdmQxnt+C45haJC44mlpZeNN6Lp+Y7awK5/CRXCyNRbh98fDVEXu+kxbpOIThNlD 8xJflORRyyzB6ns5dep8GLrAhISeqU2/1+ZmMRMVNH1Qr63v8ULSx3cI9yYfTxKvzCp7 uGOEMbYR/vEj9MldNJYgB5L3THQLl0VWM9L3QxE3AA80UPI0e9MPfKkc2vq9fcpB+zBk aKzA== 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:mime-version:content-transfer-encoding; bh=Qy7AvatIqffY4xvh/iJWRifOixdLsIdAN4n8+psibAI=; b=eTb8riPwP+sxHbYD1SoWBcAKOxIvKzEl67PIx/kOMVxTI4JjEuklLn82J1nfZuR4s+ aTim5NSc6iKhOdju0o9ujcMorzESUqG8hSi5+ZrUH27SA8OO2LG4C71Z6ChcMt3uiBX9 oDhg+Q0cyZEo5diNXnMZpcgjRmpxh8PsDmuW7Viz+Cv+Rdu3mQRKkKnE7+p/mgrH81wl vsHu8ndeTHuC+qT4FZXwScSw4kOWX3hfQwbVIZc1JlnaPX77uAasDBiA5VRGm0SThYJE K1vfgbMNmA/4oDI+dh1t3YFM0sNzcq+bZ2MwjyudUYd99RUiC0+w4T59QYlI3Ei1T1em hxfw== X-Gm-Message-State: APjAAAVACAoMNZyy1AvodAahMktrvnIpYgQRfzx7iDUxS7UpYFv57Ke1 WfoHcFU4uEmIst9JkGsbcg== X-Received: by 2002:adf:f581:: with SMTP id f1mr63156801wro.264.1582499901211; Sun, 23 Feb 2020 15:18:21 -0800 (PST) Received: from ninjahost.lan (host-2-102-13-223.as13285.net. [2.102.13.223]) by smtp.googlemail.com with ESMTPSA id q6sm8968203wrf.67.2020.02.23.15.18.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 15:18:20 -0800 (PST) From: Jules Irenge To: boqun.feng@gmail.com Cc: jbi.octave@gmail.com, linux-kernel@vger.kernel.org, "James E.J. Bottomley" , "Martin K. Petersen" , Nathan Chancellor , Varun Prakash , Hannes Reinecke , linux-scsi@vger.kernel.org (open list:SCSI SUBSYSTEM) Subject: [PATCH 21/30] scsi: csiostor: Add missing annotation for csio_scsi_cleanup_io_q() Date: Sun, 23 Feb 2020 23:17:02 +0000 Message-Id: <20200223231711.157699-22-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200223231711.157699-1-jbi.octave@gmail.com> References: <0/30> <20200223231711.157699-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse reports a warning at csio_scsi_cleanup_io_q() warning: context imbalance in csio_scsi_cleanup_io_q() - unexpected unlock The root cause is the missing annotation at csio_scsi_cleanup_io_q() Add the missing __must_hold(&hw->lock) Signed-off-by: Jules Irenge --- drivers/scsi/csiostor/csio_scsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/csiostor/csio_scsi.c b/drivers/scsi/csiostor/csio_scsi.c index 00cf33573136..77cba766ae52 100644 --- a/drivers/scsi/csiostor/csio_scsi.c +++ b/drivers/scsi/csiostor/csio_scsi.c @@ -1157,6 +1157,7 @@ csio_scsi_cmpl_handler(struct csio_hw *hw, void *wr, uint32_t len, */ void csio_scsi_cleanup_io_q(struct csio_scsim *scm, struct list_head *q) + __must_hold(&hw->lock) { struct csio_hw *hw = scm->hw; struct csio_ioreq *ioreq; -- 2.24.1