aacraid: IOCTL fix
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>
This commit is contained in:
parent
8b1462e0eb
commit
e728f8e39f
1 changed files with 5 additions and 0 deletions
|
@ -1448,6 +1448,11 @@ static int aac_resume(struct pci_dev *pdev)
|
||||||
pci_set_master(pdev);
|
pci_set_master(pdev);
|
||||||
if (aac_acquire_resources(aac))
|
if (aac_acquire_resources(aac))
|
||||||
goto fail_device;
|
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);
|
scsi_unblock_requests(shost);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue