Message ID | 1441793369.5845.87.camel@kxue-X58A-UD3R (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 607BA9F326 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 9 Sep 2015 10:27:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 76CA92087F for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 9 Sep 2015 10:27:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E7C520873 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 9 Sep 2015 10:27:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753740AbbIIK1u (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 9 Sep 2015 06:27:50 -0400 Received: from mail-by2on0065.outbound.protection.outlook.com ([207.46.100.65]:30400 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752694AbbIIK1s (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 9 Sep 2015 06:27:48 -0400 Received: from BN1PR12CA0006.namprd12.prod.outlook.com (10.160.77.16) by BLUPR12MB0707.namprd12.prod.outlook.com (10.163.218.145) with Microsoft SMTP Server (TLS) id 15.1.262.15; Wed, 9 Sep 2015 10:13:25 +0000 Received: from CO1NAM03FT013.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::205) by BN1PR12CA0006.outlook.office365.com (2a01:111:e400:49::16) with Microsoft SMTP Server (TLS) id 15.1.262.15 via Frontend Transport; Wed, 9 Sep 2015 10:13:25 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.222) smtp.mailfrom=amd.com; intel.com; dkim=none (message not signed) header.d=none; intel.com; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from atltwp02.amd.com (165.204.84.222) by CO1NAM03FT013.mail.protection.outlook.com (10.152.80.120) with Microsoft SMTP Server id 15.1.274.4 via Frontend Transport; Wed, 9 Sep 2015 10:13:24 +0000 X-WSS-ID: 0NUEN29-08-HDW-02 X-M-MSG: Received: from satlvexedge02.amd.com (satlvexedge02.amd.com [10.177.96.29]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by atltwp02.amd.com (Axway MailGate 5.3.1) with ESMTPS id 203C0D16018; Wed, 9 Sep 2015 06:13:20 -0400 (EDT) Received: from SATLEXDAG02.amd.com (10.181.40.5) by SATLVEXEDGE02.amd.com (10.177.96.29) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 9 Sep 2015 05:13:44 -0500 Received: from SCYBEXDAG04.amd.com (10.34.11.14) by SATLEXDAG02.amd.com (10.181.40.5) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 9 Sep 2015 06:13:23 -0400 Received: from [10.237.74.14] (10.237.74.14) by SCYBEXDAG04.amd.com (10.34.11.14) with Microsoft SMTP Server id 14.3.195.1; Wed, 9 Sep 2015 18:13:18 +0800 Message-ID: <1441793369.5845.87.camel@kxue-X58A-UD3R> Subject: [PATCH 1/1] SCSI:Fix rpm_status of request_queue in S3 resume of SCSI device From: Ken Xue <Ken.Xue@amd.com> To: <stern@rowland.harvard.edu> CC: <Shane.Huang@amd.com>, <Xiangliang.Yu@amd.com>, <linux-scsi@vger.kernel.org>, <aaron.lu@intel.com>, <SPG_Linux_Kernel@amd.com> Date: Wed, 9 Sep 2015 18:09:29 +0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:165.204.84.222; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(428002)(199003)(189002)(4001540100001)(77156002)(103116003)(19580395003)(189998001)(97736004)(110136002)(92566002)(19580405001)(46102003)(23676002)(101416001)(5001860100001)(47776003)(62966003)(77096005)(5820100001)(87936001)(5001830100001)(50986999)(50466002)(2171001)(64706001)(575784001)(105586002)(5007970100001)(33716001)(86362001)(68736005)(50226001)(229853001)(33646002)(2351001)(11100500001)(106466001)(99106002)(3940600001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR12MB0707; H:atltwp02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0707; 2:ZXTQ78j8awewx7kHM1PRWVtF/ae02T6XNmj5P54nav7RT2aP8+f+V4m6OhOj+LpAcfJHAkuXDXf7ttVxtRjZ1yUEqUAdHcWV1x0EB38d98jYo7E9pE7FNzkoC8Hb6XUBo4Ww4ZdEWXMRTGOHUME4AMwiYMuqKJS8AI6gc2oHGzw=; 3:87fzNLqZWXOsz1DZFfjjbdrYUfhXTYhrdHg5ca3AGeJLZi3mF8uItIa76rzUb+dbWjhWhTc6A/NSx4sEFrAwLLPm/6uHcmcuRxZe1qTchqeCdadRm6GEe55dJ7T7pT8A46VHrSWxh9N8oirXTzrdzoYjkKobotiXKpUwYa2SEFW2QFPTrSW6DugsRUufGBorRojRe0eRp9ue9MbDeMq5caCrypwRQQuqAusbB+XATkD8ehEuIlLt3CQycbuMeiaN; 25:VaFgCyka+kT7QGQ405LWKKUG68E8vdHRUfjv8wYnMiZhFT3vLjGfikQ6aSnnan7Axy3X63RjsV3pnKy6L0yWegUpEUiveqMO7dS7924Vtn0pVSSvcDafSGfyCugD00N1kMMHwYuILCZgybNunrucWTgzluiugoE8o8tK4Z3+XwwedhfM4HUH7DO4QtbcNCEr1zz3P+t+C9hnaP/Am1NJx3bQFEncqU3nnQdd/oYkBRzVY+YuiQtnPglsFG294UxYLBpB81mZ8J0/+qk0Uhpxbw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0707; X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0707; 20:2siHs8oyxd+AFkHFsEDTbpTAgOPuQ03WgiypznUZX1szZX60pc2gtOlvNMssa5tEKS0I0sM4zKh1T2xG7SmaRNoq7GhVCQrmq8nlXg7S38ssxjGSUPIzQSd0+VZf5kyO+9xnZRVXe5wq7Q7RVWXu/s/+v4lOsVmaVIXfQkYOEOSwpkRtqDZL3wTbKZtfHaLdKetnO37qL7+L0x6gvG1gKv6xI3NVlxHSkjFJxFnETAOH1Pr4aash1b0j3NwLQ7/c2Se3wlueaFP7QawR1uOvx8m4PaeMRvF1K042xGL+OMTtHh4OI4rLxPLLdxPlYg95+ZSfVS2dKa65NflJMjgolsBLGjgSt0KXlK+x6uTiVF+vVNJMnkYnN3nH8+U7eK0x+6CYMJ4YZlUu8cOMwCdxQLQU2EpSnGF90Xg7Q7iMKh5tJsTnH6X6b14Tu0Z2/XIF4DqB3UPvyuT+GL4kg9K21JKKguyerl2tBFd8KexSBQhZaTT+pnOl59elV1eegoza; 4:+7dnjQWoSAzenY08ym2jNjOWXEcDTqSEZTMc/Cw/meceVvZpya4FgCYe3YsvBt+zTECtssU/H68xJBANRaJXu39bsEHG6olVLlbgZ1ZCLvHBsVN38DyS5QVCxTSVN7LtG/78RfOCm3uyJfmcOw8TLvRfkZ2CIRY4RHWnJKQWiixLpurvgoHxZGj88Yv+65mWhvDt/5p6SRoljkWZd1niI/yjlrui5EzP0+6PDPn9C4J5fUmOYo+jLO/SYzehXAyVnjNySEXi3DrgUkteSLkJVeYwcFYXKxJVVEtK+ghriuqcPjMGK6oxsGpj69ZWFHVP X-Microsoft-Antispam-PRVS: <BLUPR12MB070724FAAA5DDFE1917D349CFB520@BLUPR12MB0707.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(8121501046)(5005006)(3002001); SRVR:BLUPR12MB0707; BCL:0; PCL:0; RULEID:; SRVR:BLUPR12MB0707; X-Forefront-PRVS: 0694C54398 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTFVQUjEyTUIwNzA3OzIzOjFHQWpuaCtSZXBXUWVMdWcxVzFJaXlPTXRY?= =?utf-8?B?cjU4YnhRYlVlNC92ajdjYXBxQzIxN0ZMTmhJU2owYU1VUlVBTmpYYXRPSnAx?= =?utf-8?B?ZUt2eVJ1OXRTbitxbThLclZRQjEyM25HU1ZxUWk1RFBxZjVud2hTSXN5SHMr?= =?utf-8?B?NG01UlN4N0txY3RsNnhna245U25RdEV4Y1JPUEZJZnVUSVJhckxaUEVWalBF?= =?utf-8?B?ckNWTVN2R1hRQUljTndGSHowQmNKZFUzbDd2Um5TcFplaExMK0c3eE9qaW1p?= =?utf-8?B?dVhsUUxXSFFOSTZzcWlEKzdLN3lWUmdGSW1tU24waWRFSTRNYXdPeWV6aDRw?= =?utf-8?B?Q05vNUdxOHRUaldtWlpid3IwSGs1YTBKRFBSZGVNUEtoNko4ZHVLc3FHNHZs?= =?utf-8?B?cjJZZldZTDBKczlNTjBMYmNPZFFpYlRxWmZtR0J2YXNJcGhvSVlIMlkzdXNP?= =?utf-8?B?YzJqWHRXTFRGd0Z1Unl3SVhqQXRNem5KZ2poWlpyVGVhRnRXU0R5SkNHQWVo?= =?utf-8?B?Tm9reVcyak5BUm1KNlc2QnZKVG1hRUxYaTJVc1VwQ2h5b2VIWm5QWkpLM3Jt?= =?utf-8?B?U3FCeEwrcGlaZEs4dFRWU1BDYUtFaVN4dUUxcU5TY2Q4UnBsUWhtLzdLd0FB?= =?utf-8?B?d3lnVWZyTm9kOHV6WHVMU05ZcEUrVmtUOXhSVUFDbDZLOHEreS9tOU5VZTd2?= =?ut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nfwum/Ad4TFCuWY3szn/VwbtjXYyyfRDScOzVZpyB/D6yaj223mKPw25pfu8v/06gej5lJAa9utBYDXhruJAzpwshUybvlJ8+I3OlnM4HwQw==; 24:jKbFdaSEyO1R11TbC1u1XiVU4FsURrOTvDau1Ke0iTsfoRDV1jh+AMK0x5JPaHMAEY3O6WfsxTINK8GLlfdHiFjXYBvFMtk8dH+dhwFXG1g=; 20:tpx+QaYXYsbVUHyBHsmwfYykiXeCh8RCfyvu9WWcyufiHxXCHTkztv85hX9fsB1ahX74hky/Jeo/C2GI2LRO1Q== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2015 10:13:24.4279 (UTC) X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.222]; Helo=[atltwp02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0707 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/scsi_pm.c b/drivers/scsi/scsi_pm.c index e4b7998..cfda027 100644 --- a/drivers/scsi/scsi_pm.c +++ b/drivers/scsi/scsi_pm.c @@ -110,7 +110,8 @@ scsi_bus_suspend_common(struct device *dev, static void async_sdev_resume(void *dev, async_cookie_t cookie) { - scsi_dev_type_resume(dev, do_scsi_resume); + if (!pm_runtime_suspended(dev)) + scsi_dev_type_resume(dev, do_scsi_resume); } static void async_sdev_thaw(void *dev, async_cookie_t cookie)