aacraid: IOCTL fix
authorMahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com>
Fri, 28 Aug 2015 10:38:39 +0000 (06:38 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Tue, 10 Nov 2015 00:07:31 +0000 (16:07 -0800)
Driver blocks ioctls once it received shutdown/suspend request during
suspend/hybernation. This patch unblocks ioctls on resume path.

Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Murthy Bhat <Murthy.Bhat@pmcs.com>
Reviewed-by: Karthikeya Sunkesula <Karthikeya.Sunkesula@pmcs.com>
Signed-off-by: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/aacraid/linit.c

index 37375cf7d12619bdf9b6f1aa3aac6687695363b5..3b6e5c67e853d96aeafeee16859d19bfa3731a5b 100644 (file)
@@ -1448,6 +1448,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;