You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
scsi_dh: move 'dh_state' sysfs attribute to generic code
As scsi_dh.c is now always compiled in we should be moving the 'dh_state' attribute to the generic code. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.com> Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
7789cd3927
commit
41f95dd2ef
@@ -174,12 +174,11 @@ extern struct async_domain scsi_sd_probe_domain;
|
||||
#ifdef CONFIG_SCSI_DH
|
||||
int scsi_dh_add_device(struct scsi_device *sdev);
|
||||
void scsi_dh_release_device(struct scsi_device *sdev);
|
||||
void scsi_dh_remove_device(struct scsi_device *sdev);
|
||||
#else
|
||||
static inline int scsi_dh_add_device(struct scsi_device *sdev) { return 0; }
|
||||
static inline void scsi_dh_release_device(struct scsi_device *sdev) { }
|
||||
static inline void scsi_dh_remove_device(struct scsi_device *sdev) { }
|
||||
#endif
|
||||
static inline void scsi_dh_remove_device(struct scsi_device *sdev) { }
|
||||
|
||||
/*
|
||||
* internal scsi timeout functions: for use by mid-layer and transport
|
||||
|
||||
Reference in New Issue
Block a user