ib_srpt: Convert to percpu_ida tag allocation
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 30 Jan 2016 06:47:58 +0000 (22:47 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Mar 2016 05:48:25 +0000 (21:48 -0800)
commit0fd10721fe3664f7549e74af9d28a509c9a68719
tree5a8baa2974420e246c816828d5f6954050bbb704
parent91973cd60e2db7536228ce2732ffea4e50d03ca9
ib_srpt: Convert to percpu_ida tag allocation

This patch converts ib_srpt to use existing percpu_ida tag
pre-allocation for struct srpt_send_ioctx.

This allows ib_srpt to drop it's internal pre-allocation
mechanisms with the extra spin_lock_irqsave, and use
percpu_ida common code for doing this.

Cc: Vu Pham <vu@mellanox.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/srpt/ib_srpt.c
drivers/infiniband/ulp/srpt/ib_srpt.h