diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2008-01-31 14:36:46 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-02-07 19:02:35 -0500 |
commit | bd976f62cd6c6dda1ce57bf3e84447e94844868a (patch) | |
tree | 560e9fd29f0af7d6cb1a89b49e6f2091832c987b /include | |
parent | 7fb1921b07a83f71a77f806a2a7d2dd721ea641b (diff) |
[SCSI] iscsi class: add session scanning
This just adds iscsi session scanning which works like fc rport scanning.
The future patches will hook the drivers into Mathew Wilcox's async
scanning infrastructure, so userspace does not have to special case
iscsi and so userspace does not have to make a extra special case for
hardware iscsi root scanning.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/scsi_transport_iscsi.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h index 0e869d9a3856..1f0ec46b4f87 100644 --- a/include/scsi/scsi_transport_iscsi.h +++ b/include/scsi/scsi_transport_iscsi.h | |||
@@ -177,11 +177,12 @@ struct iscsi_cls_session { | |||
177 | struct list_head host_list; | 177 | struct list_head host_list; |
178 | struct iscsi_transport *transport; | 178 | struct iscsi_transport *transport; |
179 | spinlock_t lock; | 179 | spinlock_t lock; |
180 | struct work_struct scan_work; | ||
181 | struct work_struct unbind_work; | ||
180 | 182 | ||
181 | /* recovery fields */ | 183 | /* recovery fields */ |
182 | int recovery_tmo; | 184 | int recovery_tmo; |
183 | struct delayed_work recovery_work; | 185 | struct delayed_work recovery_work; |
184 | struct work_struct unbind_work; | ||
185 | 186 | ||
186 | int target_id; | 187 | int target_id; |
187 | 188 | ||
@@ -203,8 +204,8 @@ struct iscsi_cls_session { | |||
203 | struct iscsi_host { | 204 | struct iscsi_host { |
204 | struct list_head sessions; | 205 | struct list_head sessions; |
205 | struct mutex mutex; | 206 | struct mutex mutex; |
206 | struct workqueue_struct *unbind_workq; | 207 | struct workqueue_struct *scan_workq; |
207 | char unbind_workq_name[KOBJ_NAME_LEN]; | 208 | char scan_workq_name[KOBJ_NAME_LEN]; |
208 | }; | 209 | }; |
209 | 210 | ||
210 | /* | 211 | /* |