Joel Stanley | 3e6c313 | 2015-11-19 23:50:22 +1030 | [diff] [blame] | 1 | From 21b4be79f2475bc5acd600400c47110695675ac0 Mon Sep 17 00:00:00 2001 |
Joel Stanley | e4aa6fb | 2015-09-29 13:31:58 +0930 | [diff] [blame] | 2 | From: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com> |
| 3 | Date: Fri, 28 Aug 2015 06:38:39 -0400 |
Joel Stanley | 3e6c313 | 2015-11-19 23:50:22 +1030 | [diff] [blame] | 4 | Subject: [PATCH 11/15] aacraid: IOCTL fix |
Joel Stanley | e4aa6fb | 2015-09-29 13:31:58 +0930 | [diff] [blame] | 5 | |
| 6 | Driver blocks ioctls once it received shutdown/suspend request during |
| 7 | suspend/hybernation. This patch unblocks ioctls on resume path. |
| 8 | |
| 9 | Reviewed-by: Tomas Henzl <thenzl@redhat.com> |
| 10 | Reviewed-by: Murthy Bhat <Murthy.Bhat@pmcs.com> |
| 11 | Reviewed-by: Karthikeya Sunkesula <Karthikeya.Sunkesula@pmcs.com> |
| 12 | Signed-off-by: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com> |
| 13 | Signed-off-by: Joel Stanley <joel@jms.id.au> |
| 14 | --- |
| 15 | drivers/scsi/aacraid/linit.c | 5 +++++ |
| 16 | 1 file changed, 5 insertions(+) |
| 17 | |
| 18 | diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c |
Joel Stanley | 3e6c313 | 2015-11-19 23:50:22 +1030 | [diff] [blame] | 19 | index 37375cf7d126..3b6e5c67e853 100644 |
Joel Stanley | e4aa6fb | 2015-09-29 13:31:58 +0930 | [diff] [blame] | 20 | --- 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 Stanley | 3e6c313 | 2015-11-19 23:50:22 +1030 | [diff] [blame] | 35 | 2.6.2 |
Joel Stanley | e4aa6fb | 2015-09-29 13:31:58 +0930 | [diff] [blame] | 36 | |