1SCSI_INTERNAL_DEVICE(9) SCSI mid layer SCSI_INTERNAL_DEVICE(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.
30
32 James Bottomley <James.Bottomley@hansenpartnership.com>
33 Author.
34
35 Rob Landley <rob@landley.net>
36 Author.
37
39Kernel Hackers Manual 3.10 June 2019 SCSI_INTERNAL_DEVICE(9)