Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1011950pxa; Wed, 19 Aug 2020 23:27:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypynxvorRzTcPNNe5ijIeElC+59CN+7Wli90Wi2nrT6/xTR7wRXV64AFETTRqIdbWnByU6 X-Received: by 2002:a05:6402:13c4:: with SMTP id a4mr1506529edx.108.1597904848448; Wed, 19 Aug 2020 23:27:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597904848; cv=pass; d=google.com; s=arc-20160816; b=oNPSwxdzaVr22iGfGS32nH3nOEUw0/xYlwTNroyEe2JBT8ZHxfCQSir7rgKAiOI+0w L8QHZNOaIcsLrEQ5AnUzNnxocfwgkald+WZ94w5MJ9iX9CbV2z8J25KCNgPei38uI7wf XHQ2T48NC0PiE8trlFFXaszytVjFi3dFrymISI1cn2kwJI1aeKe59I3yjo/se7fp46Ok +FWNgO9QwXIQrW2P9qrBaqpiuFgLoV6pLVpl3x5lEgbDrJDr78rNupgfHdxKcbQOMqin WQ4XGlaUfasLysNo5iKASmkFQMv76livIayOYwDb9ZiBnFUdNK2VulJr9XEmsc6TTqc+ vWaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:ironport-sdr:dkim-signature; bh=m61lVYb36l91KlL1tDDJ+CHnyRlJ44a//Q3eNdpQMbE=; b=jlTY5X/EUPMRbNfAE60E1az8U0u1OcltQbHo/yC4R0uugCkEu7pCbc8n9cUDGW1Whf 6t6WemfxH2wbm82XUo0Ius5uDuTXE6R1I0pvsJXr+ssxXI/TNct6KYKhPxLR62r4eH8D ROx1YwRvtU9Jk54FHQtSIuA150A9pxv0HnTkQXajU1JTl8/e/b8uIr9Y7jiOMxuEv9ED dnlDjf8kgMbFD58AKWmXJuo8s6b+raxeELg6gwIzqqhHvQ2baQtAXbtDZUAKNxh8QKvA GmGmC/vHmnqH3zGqHQU2kJ9K7IuXmG6FclBpOSK2WPY7B7Kx6rFrAPSA/MyNIpkcI+bq VeOg== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="VGAiJnz/"; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=JZiEV2R2; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d19si731238ejt.707.2020.08.19.23.27.03; Wed, 19 Aug 2020 23:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="VGAiJnz/"; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=JZiEV2R2; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725916AbgHTGYX (ORCPT + 99 others); Thu, 20 Aug 2020 02:24:23 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:45333 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbgHTGYV (ORCPT ); Thu, 20 Aug 2020 02:24:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1597904662; x=1629440662; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=eDYEYJzZNhBFU6gAbCo8Ma5k2H7ZUhzQ/OvxNrJDVls=; b=VGAiJnz/paoXFIhcowH+WxGEAkZc02J1CMF241PjUoBAS7rTeNeekGPj x116qcTEfxLdrW+jKUpcoqYHppxM7NWYigeOK/Ho4udXMEAd/Epr+dGMA OocSKMrLpE/yQcKYnoI7qt4l2ecbPV2wxwTRx7wNaB6Cw7Q8jWRvN7hRK WAL1eBsCSB5J612EIllxMZD7UHO/ZSNjDuIN0z62hCCjwTmKy0ZU6a348 10NLIyXIetSAcbxlceIPlg+wCQpRGPZkz1EP8jIUpfTqLIOP83r/y7O9K Jj7V+vq0LmxEs5yF0XCVCS1ODFEicvKBE2UERWhZm4VReR98SJrpu7wiz w==; IronPort-SDR: lUjythBlDJ9wJ6dwr4pVOI0sYozguO2us9AOWRu9YJoItKJkqtneKs11xnXPOqVgVIcoeqt8kB gnckW1rpzRwWsCGMIsyG6NLCDn5P8YliR4OrgPkNYjf5o/ZlawkgjkoO0yeoZurZHRbW0WgkHe beL3Ne1/7eIHLoP/b82jPY40rPCGUhVImi1yx9hYV9Jn6DgUWfB+4lMlMoXHhKS5IBAjLoGq0q joZwB0yPC07g9cfyjXXhagXQ4OwHrFjHaq3b0Ib9kV1q3hQQte5cT862GDi1hJGhpy0g6OLPjf rtA= X-IronPort-AV: E=Sophos;i="5.76,332,1592841600"; d="scan'208";a="145399888" Received: from mail-bn7nam10lp2104.outbound.protection.outlook.com (HELO NAM10-BN7-obe.outbound.protection.outlook.com) ([104.47.70.104]) by ob1.hgst.iphmx.com with ESMTP; 20 Aug 2020 14:24:20 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KKCose5z/8hD3vtAAEljHORCV+UIu/ntOoR2eNuAi3ZAZTnOgINbazxr/I8GjEBhx1ENL2ocL62mB7MndAy53PcnlLwk6hB00xcNJIh7jiKKnGI5fDwBu99vUeEy0AnvVosV1uzQ1tw3eYK4oLbYcdzAFd1XpsTxJZaK2kDZpL95+Dq6eKl5H9ijU4tJC2bx/yIG/gcsWid11DsPbeWpSi+YmBIw/eYudfN14FuIwgDT/5fKbNzX+yjkNhQ6ncQL/jQKAaDdYT4u6w4kSw9IxJ3usxKT1PWgjp2Ymr6ZIhjCl4FN9psJsfAJTHbdD9qpsqFGeMxD8As+Yq2qQDuc3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m61lVYb36l91KlL1tDDJ+CHnyRlJ44a//Q3eNdpQMbE=; b=XvmoPQfbt9CwpbAMVSfkCHFnowHSLzNdXoLjdO36K+2mZMivths+qsrfFRqgUdvblUdzuZ71gC1bClfKYgEDsZe1RfO7bAOR3jp+LJo7N6CLiMCyXxI8/KVHxEBuuPrw+kJXheS1/bnVWsIjmEo8TNXkWrAtdmOz0yyI2BDARi3FcaY7ZS2y+LpYcIvzoruM4UGnbcoNYwdtCYPBdd/1iP5n5fFWv7zNAwGi3oNaZo6CWgCmCgvUfOCir/fEQjUjigxNDZfDDXNad6AkPnepJwggghesjqwQtm/S3R0W7gXKYaAjifVgbbPl3XlbIgKtiW/iah0mLwTdvs/ExlrIdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m61lVYb36l91KlL1tDDJ+CHnyRlJ44a//Q3eNdpQMbE=; b=JZiEV2R2tZ+qsu6zUc5E+5od21b397UwMDgMDXojgp4rjFo0+i0uxGA+zq2aXYkKml8T1knwMBecbZmRHrct//vJpvrL8S+0apJxuI3OiRSQniQ6jjCSopPt1DZ4ErYorPomzZMz4PW6pbienF8U5g9mgM6e76M1Skmu+UUXm5s= Received: from BY5PR04MB6705.namprd04.prod.outlook.com (2603:10b6:a03:220::8) by BY5PR04MB6882.namprd04.prod.outlook.com (2603:10b6:a03:21b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.26; Thu, 20 Aug 2020 06:24:17 +0000 Received: from BY5PR04MB6705.namprd04.prod.outlook.com ([fe80::1083:4093:49fa:a3fd]) by BY5PR04MB6705.namprd04.prod.outlook.com ([fe80::1083:4093:49fa:a3fd%2]) with mapi id 15.20.3283.028; Thu, 20 Aug 2020 06:24:17 +0000 From: Avri Altman To: Can Guo , "asutoshd@codeaurora.org" , "nguyenb@codeaurora.org" , "hongwus@codeaurora.org" , "rnayak@codeaurora.org" , "linux-scsi@vger.kernel.org" , "kernel-team@android.com" , "saravanak@google.com" , "salyzyn@google.com" CC: Alim Akhtar , "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , Bean Huo , Bart Van Assche , open list Subject: RE: [PATCH] scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler() Thread-Topic: [PATCH] scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler() Thread-Index: AQHWdR9eLwo1QgZADUa7GqtKpJda3qlAinkg Date: Thu, 20 Aug 2020 06:24:16 +0000 Message-ID: References: <1597728047-39936-1-git-send-email-cang@codeaurora.org> In-Reply-To: <1597728047-39936-1-git-send-email-cang@codeaurora.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: codeaurora.org; dkim=none (message not signed) header.d=none;codeaurora.org; dmarc=none action=none header.from=wdc.com; x-originating-ip: [212.25.79.133] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 82f19f05-c0ba-4f3b-15f5-08d844d1aa71 x-ms-traffictypediagnostic: BY5PR04MB6882: x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8OoQIX1gSjoaIObyvXWJaCWqkyNe3fxhGi4SKC6PCN7XDr5MDBAoO9sfF3X0ZIsuLYSRXVQGO4WC1TnZbREjqbDIJw5EYzQUamx1HgitzbtaO0oC20ulZb45pnBz2fuO5eiXny5ST8fCOhuHRx4mRHtdoD2cEscMB1aQdQjG0Q15URNB8BPcUjpEC1Qupo+9ERF6QmjldYtruSyLI77Oola/yKT5FovW8SLXcGRUn9BnNLzy7Z0LObbngwUi09gaFae3K2E37hHsNZpVhNKQYy1/B63l6JO/JtuTq4CcnVOYLZkTR+ZKFTGNG9Dt+HKVEBPXUYqh55Lv4GiL4UUENA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR04MB6705.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(66556008)(66476007)(66446008)(64756008)(66946007)(76116006)(71200400001)(83380400001)(2906002)(7416002)(86362001)(6506007)(33656002)(26005)(186003)(52536014)(498600001)(5660300002)(4326008)(7696005)(110136005)(8676002)(4744005)(8936002)(9686003)(55016002)(54906003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: jtLwSSRzqCV+/qcsowXLFSwe8IgfZk/5ZsLTWVzsfsmUVh39wSSLnPI6c6ebloEeh1OJ4olCw/Fy+rK6EYj5AWGoWdTGZkOmoC78TQnTQCXiKOalzNbsw5Pi/QalX0fWSGGMzQSicGOBR8YQFWfa/Cp8+ASSu+cPlPomKeloKobnR+DR4OZHbNklFMhxvEr/uNhy6lsFauzYQXh0W3c+ByVmRlEqKSdbLnatR1MQ2duXHz1fO9OkvBkqELl0rz/P5IaKP+dh4ti7MUKpq+ei20CHe11k/xOh8qF5bdWK66zGrdACq8gzkvwowWkw+HRtaAHNj7SeOMMYIJbckGsSUbbO+xxH/9qCN2sBDERVu1CD36n1sv2oecVnqbDCJj1goMSDBaGPrllwWPt09Ntz+WTQHAGSkBA+zDDc4qPZsVUr59a7ji8kP9GXwXi6cmDyWYWrtQlMFjpxp4a4gMishmUUb/tDMWlsmyTDBWpbeL0/Rn5fbVvAGmEuVEzmKrgkq/WCj/xSV3Hq7eF2GmBE6ZgjAmdDr9ttINJPeMV3hq2gAqCiTTkvvN44gUgNCsbh/79QAJFZdBTsmJbLkiVrWzGXJMP8Dj+vWXIwTQzjxJdJH9NiuyLrAjK6cHCvaebYe75wrwhXni0krJco/90uyA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6705.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82f19f05-c0ba-4f3b-15f5-08d844d1aa71 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Aug 2020 06:24:16.9962 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: D3tkxkUjzhF0ulcXDk87nTB1qIHwzQRhzqgyBcZYkiiqjQYB0BnNloyO/vKR5VTZoCWqRnQcNdavPbbsizDURg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR04MB6882 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =20 >=20 > Commit 5586dd8ea250a ("scsi: ufs: Fix a race condition between error > handler and runtime PM ops") moves the ufshcd_scsi_block_requests() insid= e > err_handler(), but forgets to remove the ufshcd_scsi_unblock_requests() i= n > the early return path. Correct the coding mistake. "fixes" tag please, for those who don't read the commit message. Thanks, Avri >=20 > Signed-off-by: Can Guo >=20 > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > index 2b55c2e..b8441ad 100644 > --- a/drivers/scsi/ufs/ufshcd.c > +++ b/drivers/scsi/ufs/ufshcd.c > @@ -5670,7 +5670,6 @@ static void ufshcd_err_handler(struct work_struct > *work) > if (hba->ufshcd_state !=3D UFSHCD_STATE_ERROR) > hba->ufshcd_state =3D UFSHCD_STATE_OPERATIONAL; > spin_unlock_irqrestore(hba->host->host_lock, flags); > - ufshcd_scsi_unblock_requests(hba); > return; > } > ufshcd_set_eh_in_progress(hba); > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linu= x > Foundation Collaborative Project.