diff options
author | Hannes Reinecke <hare@suse.de> | 2020-02-28 08:53:13 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-02-29 02:54:51 +0100 |
commit | 2bb955840c1dc44746af8a7873d9a0ba70debbd6 (patch) | |
tree | fa78adae27c16e7378390d6c44e8c8720c21586d /include/scsi/scsi_host.h | |
parent | scsi: aacraid: move scsi_(block,unblock)_requests out of _aac_reset_adapter() (diff) | |
download | linux-2bb955840c1dc44746af8a7873d9a0ba70debbd6.tar.xz linux-2bb955840c1dc44746af8a7873d9a0ba70debbd6.zip |
scsi: core: add scsi_host_(block,unblock) helper function
Add helper functions to call scsi_internal_device_block()/
scsi_internal_device_unblock() for all attached devices on a SCSI host.
Link: https://lore.kernel.org/r/20200228075318.91255-9-hare@suse.de
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '')
-rw-r--r-- | include/scsi/scsi_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 25bef781cbe1..613c3820028e 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h @@ -758,6 +758,8 @@ static inline int scsi_host_scan_allowed(struct Scsi_Host *shost) extern void scsi_unblock_requests(struct Scsi_Host *); extern void scsi_block_requests(struct Scsi_Host *); +extern int scsi_host_block(struct Scsi_Host *shost); +extern int scsi_host_unblock(struct Scsi_Host *shost, int new_state); struct class_container; |