From patchwork Fri May 15 02:57:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mahesh Rajashekhara X-Patchwork-Id: 6410851 Return-Path: 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 94E529F1CC for ; Fri, 15 May 2015 02:57:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ACE7820454 for ; Fri, 15 May 2015 02:57:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C59342044C for ; Fri, 15 May 2015 02:57:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423400AbbEOC5p (ORCPT ); Thu, 14 May 2015 22:57:45 -0400 Received: from bby1mta02.pmc-sierra.com ([216.241.235.117]:60561 "EHLO bby1mta02.pmc-sierra.bc.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423341AbbEOC5p convert rfc822-to-8bit (ORCPT ); Thu, 14 May 2015 22:57:45 -0400 Received: from bby1mta02.pmc-sierra.bc.ca (localhost.pmc-sierra.bc.ca [127.0.0.1]) by localhost (Postfix) with SMTP id 0E1E38E050F; Thu, 14 May 2015 19:57:45 -0700 (PDT) Received: from smtp.pmcs.com (bby1cas04.pmc-sierra.internal [216.241.227.182]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by bby1mta02.pmc-sierra.bc.ca (Postfix) with ESMTP id F02388E050D; Thu, 14 May 2015 19:57:44 -0700 (PDT) Received: from BBYEXM01.pmc-sierra.internal ([169.254.1.160]) by bby1cas04.pmc-sierra.internal ([fe80::8e9:88f9:cdc0:67bb%15]) with mapi id 14.03.0123.003; Thu, 14 May 2015 19:57:44 -0700 From: Mahesh Rajashekhara To: Rajinikanth Pandurangan , "jbottomley@parallels.com" , "linux-scsi@vger.kernel.org" CC: "aacraid@pmc-sierra.com" , Harry Yang , Rich Bono , Achim Leubner , Murthy Bhat , "Rajinikanth Pandurangan" Subject: RE: [PATCH 7/9] [SCSI] aacraid: Unblock IOCTLs to controller once system resumed from suspend Thread-Topic: [PATCH 7/9] [SCSI] aacraid: Unblock IOCTLs to controller once system resumed from suspend Thread-Index: AQHQjdr6GVKcASJyWEWxHZJeeJRaT518WhWQ Date: Fri, 15 May 2015 02:57:44 +0000 Message-ID: References: <1431562378-8514-1-git-send-email-rajinikanth.pandurangan@pmcs.com> <1431562378-8514-8-git-send-email-rajinikanth.pandurangan@pmcs.com> In-Reply-To: <1431562378-8514-8-git-send-email-rajinikanth.pandurangan@pmcs.com> Accept-Language: en-CA, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [216.241.227.4] MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pmcs.com; h=from:to:cc:subject:date:message-id:references:in-reply-to:content-type:content-transfer-encoding:mime-version; s=default; bh=yQiZj9FWkIALFD4jrmd9ly0QjPlO7JQkpLCgIrF0hs4=; b=IOI49yeSmgsZNp/uoJa7AaGTRzpmVHBcuxZxPuW0XCjOlbdexZhmjComYeiphT0VjQNl9MAYpGTqizpoTxpag7r/r+vjgj+DAeGNtbVr5+TYLtxa/dwD7H/B59SPeLZVzwDrC1zEtABQcTsANjW5nhU1z+hjq8y4GSt+oP0T7Bo= Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,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 Reviewed-by: Mahesh Rajashekhara -----Original Message----- From: rajinikanth.pandurangan@pmcs.com [mailto:rajinikanth.pandurangan@pmcs.com] Sent: Thursday, May 14, 2015 5:43 AM To: jbottomley@parallels.com; linux-scsi@vger.kernel.org Cc: aacraid@pmc-sierra.com; Harry Yang; Rich Bono; Achim Leubner; Murthy Bhat; Rajinikanth Pandurangan Subject: [PATCH 7/9] [SCSI] aacraid: Unblock IOCTLs to controller once system resumed from suspend From: Rajinikanth Pandurangan Description: Driver blocks ioctls once it received shutdown/suspend request during suspend/hybernation. This patch unblocks ioctls on resume path. Signed-off-by: Rajinikanth Pandurangan --- drivers/scsi/aacraid/linit.c | 5 +++++ 1 file changed, 5 insertions(+) -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index 62a928f..d977cd2 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c @@ -1363,6 +1363,11 @@ static int aac_resume(struct pci_dev *pdev) pci_set_master(pdev); if (aac_acquire_resources(aac)) goto fail_device; + /* + * reset this flag to unblock ioctl() as it was set at + * aac_send_shutdown() to block ioctls from upperlayer + */ + aac->adapter_shutdown = 0; scsi_unblock_requests(shost); return 0;