diff options
author | Nicholas Bellinger <nab@daterainc.com> | 2013-08-17 15:49:08 -0700 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-09-09 14:29:22 -0700 |
commit | 988e3a85463d9b6dabc681df3f8f131b23c19953 (patch) | |
tree | 26ae4d803ff49f0938d20f910be19a172a64d8a4 /drivers/target/iscsi/iscsi_target_core.h | |
parent | d703ce2f7f4de20c03d71c22a9d5e3708798047b (diff) | |
download | op-kernel-dev-988e3a85463d9b6dabc681df3f8f131b23c19953.zip op-kernel-dev-988e3a85463d9b6dabc681df3f8f131b23c19953.tar.gz |
iscsi-target: Convert to per-cpu ida_alloc + ida_free command map
This patch changes iscsi-target to use transport_alloc_session_tags()
pre-allocation logic for per-cpu session tag pooling with internal
ida_alloc() + ida_free() calls based upon the saved se_cmd->map_tag id.
This includes tag pool setup based upon per NodeACL queue_depth after
locating se_node_acl in iscsi_target_locate_portal().
Also update iscsit_allocate_cmd() and iscsit_release_cmd() to use
percpu_ida_alloc() and percpu_ida_free() respectively.
v5 changes;
- Convert to percpu_ida.h include
v2 changes:
- Fix bug with SessionType=Discovery in iscsi_target_locate_portal()
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Kent Overstreet <kmo@daterainc.com>
Signed-off-by: Nicholas Bellinger <nab@daterainc.com>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_core.h')
-rw-r--r-- | drivers/target/iscsi/iscsi_target_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/target/iscsi/iscsi_target_core.h b/drivers/target/iscsi/iscsi_target_core.h index 129b7d7..af3cd7a4 100644 --- a/drivers/target/iscsi/iscsi_target_core.h +++ b/drivers/target/iscsi/iscsi_target_core.h @@ -17,6 +17,8 @@ #define SECONDS_FOR_ASYNC_TEXT 10 #define SECONDS_FOR_LOGOUT_COMP 15 #define WHITE_SPACE " \t\v\f\n\r" +#define ISCSIT_MIN_TAGS 16 +#define ISCSIT_EXTRA_TAGS 8 /* struct iscsi_node_attrib sanity values */ #define NA_DATAOUT_TIMEOUT 3 |