1SCSI_DEVICE_QUIESCE(9) SCSI mid layer SCSI_DEVICE_QUIESCE(9)
2
3
4
6 scsi_device_quiesce - Block user issued commands.
7
9 int scsi_device_quiesce(struct scsi_device * sdev);
10
12 sdev
13 scsi device to quiesce.
14
16 This works by trying to transition to the SDEV_QUIESCE state (which
17 must be a legal transition). When the device is in this state, only
18 special requests will be accepted, all others will be deferred. Since
19 special requests may also be requeued requests, a successful return
20 doesn't guarantee the device will be totally quiescent.
21
22 Must be called with user context, may sleep.
23
24 Returns zero if unsuccessful or an error if not.
25
27 James Bottomley <James.Bottomley@hansenpartnership.com>
28 Author.
29
30 Rob Landley <rob@landley.net>
31 Author.
32
34Kernel Hackers Manual 3.10 June 2019 SCSI_DEVICE_QUIESCE(9)