blob: a06e48581cc0fadaeb6b378c6230ef14bdbec4ab [file] [log] [blame]
Joel Stanley3e6c3132015-11-19 23:50:22 +10301From 21b4be79f2475bc5acd600400c47110695675ac0 Mon Sep 17 00:00:00 2001
Joel Stanleye4aa6fb2015-09-29 13:31:58 +09302From: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com>
3Date: Fri, 28 Aug 2015 06:38:39 -0400
Joel Stanley3e6c3132015-11-19 23:50:22 +10304Subject: [PATCH 11/15] aacraid: IOCTL fix
Joel Stanleye4aa6fb2015-09-29 13:31:58 +09305
6Driver blocks ioctls once it received shutdown/suspend request during
7suspend/hybernation. This patch unblocks ioctls on resume path.
8
9Reviewed-by: Tomas Henzl <thenzl@redhat.com>
10Reviewed-by: Murthy Bhat <Murthy.Bhat@pmcs.com>
11Reviewed-by: Karthikeya Sunkesula <Karthikeya.Sunkesula@pmcs.com>
12Signed-off-by: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com>
13Signed-off-by: Joel Stanley <joel@jms.id.au>
14---
15 drivers/scsi/aacraid/linit.c | 5 +++++
16 1 file changed, 5 insertions(+)
17
18diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
Joel Stanley3e6c3132015-11-19 23:50:22 +103019index 37375cf7d126..3b6e5c67e853 100644
Joel Stanleye4aa6fb2015-09-29 13:31:58 +093020--- a/drivers/scsi/aacraid/linit.c
21+++ b/drivers/scsi/aacraid/linit.c
22@@ -1448,6 +1448,11 @@ static int aac_resume(struct pci_dev *pdev)
23 pci_set_master(pdev);
24 if (aac_acquire_resources(aac))
25 goto fail_device;
26+ /*
27+ * reset this flag to unblock ioctl() as it was set at
28+ * aac_send_shutdown() to block ioctls from upperlayer
29+ */
30+ aac->adapter_shutdown = 0;
31 scsi_unblock_requests(shost);
32
33 return 0;
34--
Joel Stanley3e6c3132015-11-19 23:50:22 +1030352.6.2
Joel Stanleye4aa6fb2015-09-29 13:31:58 +093036