xen-scsiback: Convert to percpu_ida tag allocation
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 25 Jan 2016 06:41:50 +0000 (22:41 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Mar 2016 05:48:18 +0000 (21:48 -0800)
commit2dbcdf33dbf61f44b29adb52338282c3d7840d0e
treef5ec4be5aa7dc03a1d4583ceb6bf930ab78c0c93
parentcff834c16d23d614388aab1b86d19eb67b3f80c4
xen-scsiback: Convert to percpu_ida tag allocation

This patch converts xen-scsiback to use percpu_ida tag
pre-allocation for struct vscsibk_pend descriptor, in
order to avoid fast-path struct vscsibk_pend memory
allocations.

Note by default this is currently hardcoded to 128.

(Add wrapper for handling pending_req tag failure - Juergen)
(Drop left-over se_cmd memset in scsiback_cmd_exec - Juergen)

Acked-by: Juergen Gross <jgross@suse.com>
Tested-by: Juergen Gross <jgross@suse.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/xen/xen-scsiback.c