aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/scsi_device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index e65c62e82c5a..bb1371bf171d 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -161,6 +161,8 @@ struct scsi_device {
161 unsigned wce_default_on:1; /* Cache is ON by default */ 161 unsigned wce_default_on:1; /* Cache is ON by default */
162 unsigned no_dif:1; /* T10 PI (DIF) should be disabled */ 162 unsigned no_dif:1; /* T10 PI (DIF) should be disabled */
163 163
164 atomic_t disk_events_disable_depth; /* disable depth for disk events */
165
164 DECLARE_BITMAP(supported_events, SDEV_EVT_MAXBITS); /* supported events */ 166 DECLARE_BITMAP(supported_events, SDEV_EVT_MAXBITS); /* supported events */
165 struct list_head event_list; /* asserted events */ 167 struct list_head event_list; /* asserted events */
166 struct work_struct event_work; 168 struct work_struct event_work;
@@ -397,6 +399,8 @@ extern int scsi_execute_req(struct scsi_device *sdev, const unsigned char *cmd,
397 int data_direction, void *buffer, unsigned bufflen, 399 int data_direction, void *buffer, unsigned bufflen,
398 struct scsi_sense_hdr *, int timeout, int retries, 400 struct scsi_sense_hdr *, int timeout, int retries,
399 int *resid); 401 int *resid);
402extern void sdev_disable_disk_events(struct scsi_device *sdev);
403extern void sdev_enable_disk_events(struct scsi_device *sdev);
400 404
401#ifdef CONFIG_PM_RUNTIME 405#ifdef CONFIG_PM_RUNTIME
402extern int scsi_autopm_get_device(struct scsi_device *); 406extern int scsi_autopm_get_device(struct scsi_device *);