From: Nicholas Bellinger Date: Thu, 3 Oct 2013 21:03:59 +0000 (-0700) Subject: iscsi-target; Allow an extra tag_num / 2 number of percpu_ida tags X-Git-Tag: v3.12-rc4~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e20ae339721d614a1b0768c48bd73b456ff7905;p=pandora-kernel.git iscsi-target; Allow an extra tag_num / 2 number of percpu_ida tags This patch bumps the default number of tags allocated per session by iscsi-target via transport_alloc_session_tags() -> percpu_ida_init() by another (tag_num / 2). This is done to take into account the tags waiting to be acknowledged and released in iscsit_ack_from_expstatsn(), but who's number are not directly limited by the CmdSN Window queue_depth being enforced by the target. Using a larger value here is also useful to prevent percpu_ida_alloc() from having to steal tags from other CPUs when no tags are available on the local CPU, while waiting for unacknowledged tags to be released. Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed