]> git.baikalelectronics.ru Git - kernel.git/commit
ipr: Fix locking for unit attention handling
authorBrian King <brking@linux.vnet.ibm.com>
Tue, 14 Jul 2015 16:41:29 +0000 (11:41 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Thu, 30 Jul 2015 17:36:21 +0000 (10:36 -0700)
commit03dbdef3e364df4f7db62a228c0ce278a0e52b43
treefee08bd7133974334bf9c8d9d8ce1bc1435ab64b
parent13c7dbaa6d8011f224156cfd846e366836468bcf
ipr: Fix locking for unit attention handling

Make sure we have the host lock held when calling scsi_report_bus_reset. Fixes
a crash seen as the __devices list in the scsi host was changing as we were
iterating through it.

Cc: <stable@vger.kernel.org>
Reviewed-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/ipr.c