From 31ff0ceeb266a4ac96f3fc8cebb85df862a22f92 Mon Sep 17 00:00:00 2001 From: Matthew Wilcox Date: Tue, 19 Jun 2018 01:23:04 -0400 Subject: 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 --- drivers/target/iscsi/iscsi_target.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'drivers/target/iscsi/iscsi_target.h') 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 ***/ -- cgit