1__SCSI_INTERNAL_DEVI(9) SCSI mid layer __SCSI_INTERNAL_DEVI(9)
2
3
4
6 __scsi_internal_device_unblock - resume a device after a block request
7
9 int __scsi_internal_device_unblock(struct scsi_device * sdev,
10 enum scsi_device_state new_state);
11
13 sdev
14 device to resume
15
16 new_state
17 state to set devices to after unblocking
18
20 Called by scsi lldĀ“s or the midlayer to restart the device queue for
21 the previously suspended scsi device. Called from interrupt or normal
22 process context.
23
24 Returns zero if successful or error if not.
25
27 This routine transitions the device to the SDEV_RUNNING state or to one
28 of the offline states (which must be a legal transition) allowing the
29 midlayer to goose the queue for this device. This routine assumes the
30 host_lock is held upon entry.
31
33 James Bottomley <James.Bottomley@hansenpartnership.com>
34 Author.
35
36 Rob Landley <rob@landley.net>
37 Author.
38
40Kernel Hackers Manual 2.6. June 2019 __SCSI_INTERNAL_DEVI(9)