aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi/iscsi_target.h
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2018-06-19 01:23:04 -0400
committerMatthew Wilcox <willy@infradead.org>2018-08-21 23:54:19 -0400
commit31ff0ceeb266a4ac96f3fc8cebb85df862a22f92 (patch)
tree0b5d49f8c334d178b63b4bcc11e668f6d964f91d /drivers/target/iscsi/iscsi_target.h
parentiscsi target: fix session creation failure handling (diff)
downloadlinux-dev-31ff0ceeb266a4ac96f3fc8cebb85df862a22f92.tar.xz
linux-dev-31ff0ceeb266a4ac96f3fc8cebb85df862a22f92.zip
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.h4
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 ***/