diff options
author | Matthew Wilcox <willy@infradead.org> | 2018-06-19 01:23:04 -0400 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-08-21 23:54:19 -0400 |
commit | 31ff0ceeb266a4ac96f3fc8cebb85df862a22f92 (patch) | |
tree | 0b5d49f8c334d178b63b4bcc11e668f6d964f91d /drivers/target/iscsi/iscsi_target.h | |
parent | 26abc916a898d34c5ad159315a2f683def3c5555 (diff) |
target/iscsi: Allocate session IDs from an IDA
Since the session is never looked up by ID, we can use the more
space-efficient IDA instead of the IDR.
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target.h')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/target/iscsi/iscsi_target.h b/drivers/target/iscsi/iscsi_target.h index 42de1843aa40..48bac0acf8c7 100644 --- a/drivers/target/iscsi/iscsi_target.h +++ b/drivers/target/iscsi/iscsi_target.h @@ -55,9 +55,7 @@ extern struct kmem_cache *lio_ooo_cache; extern struct kmem_cache *lio_qr_cache; extern struct kmem_cache *lio_r2t_cache; -extern struct idr sess_idr; +extern struct ida sess_ida; extern struct mutex auth_id_lock; -extern spinlock_t sess_idr_lock; - #endif /*** ISCSI_TARGET_H ***/ |