scsi: Create two versions of scsi_internal_device_unblock()
This will make it easier to serialize SCSI device state changes through a mutex. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Cc: Sreekanth Reddy <sreekanth.reddy@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
551eb598e5
commit
43f7571be0
@@ -473,8 +473,8 @@ static inline int scsi_device_created(struct scsi_device *sdev)
|
||||
}
|
||||
|
||||
int scsi_internal_device_block_nowait(struct scsi_device *sdev);
|
||||
int scsi_internal_device_unblock(struct scsi_device *sdev,
|
||||
enum scsi_device_state new_state);
|
||||
int scsi_internal_device_unblock_nowait(struct scsi_device *sdev,
|
||||
enum scsi_device_state new_state);
|
||||
|
||||
/* accessor functions for the SCSI parameters */
|
||||
static inline int scsi_device_sync(struct scsi_device *sdev)
|
||||
|
Reference in New Issue
Block a user