scsi_dh: add 'rescan' callback
If a device needs to be rescanned the device_handler might need to be rechecked, too. So add a 'rescan' callback to the device handler and call it upon scsi_rescan_device(). The rescan callback will be invoked from the Unit Attention handling of ASC/ASCQ 3F 03 (INQUIRY DATA HAS CHANGED). Reviewed-by:Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Hannes Reinecke <hare@suse.de> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com>
Showing
- drivers/scsi/device_handler/scsi_dh_alua.c 8 additions, 0 deletionsdrivers/scsi/device_handler/scsi_dh_alua.c
- drivers/scsi/scsi_lib.c 1 addition, 0 deletionsdrivers/scsi/scsi_lib.c
- drivers/scsi/scsi_scan.c 7 additions, 1 deletiondrivers/scsi/scsi_scan.c
- include/scsi/scsi_dh.h 1 addition, 0 deletionsinclude/scsi/scsi_dh.h
Loading
Please register or sign in to comment