diff options
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r-- | include/scsi/libiscsi.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 309f51336fb9..7221a24e821b 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -327,12 +327,19 @@ struct iscsi_session { | |||
327 | struct iscsi_transport *tt; | 327 | struct iscsi_transport *tt; |
328 | struct Scsi_Host *host; | 328 | struct Scsi_Host *host; |
329 | struct iscsi_conn *leadconn; /* leading connection */ | 329 | struct iscsi_conn *leadconn; /* leading connection */ |
330 | spinlock_t lock; /* protects session state, * | 330 | /* Between the forward and the backward locks exists a strict locking |
331 | * sequence numbers, * | 331 | * hierarchy. The mutual exclusion zone protected by the forward lock |
332 | * can enclose the mutual exclusion zone protected by the backward lock | ||
333 | * but not vice versa. | ||
334 | */ | ||
335 | spinlock_t frwd_lock; /* protects session state, * | ||
336 | * cmdsn, queued_cmdsn * | ||
332 | * session resources: * | 337 | * session resources: * |
333 | * - cmdpool, * | 338 | * - cmdpool kfifo_out , * |
334 | * - mgmtpool, * | 339 | * - mgmtpool, */ |
335 | * - r2tpool */ | 340 | spinlock_t back_lock; /* protects cmdsn_exp * |
341 | * cmdsn_max, * | ||
342 | * cmdpool kfifo_in */ | ||
336 | int state; /* session state */ | 343 | int state; /* session state */ |
337 | int age; /* counts session re-opens */ | 344 | int age; /* counts session re-opens */ |
338 | 345 | ||