target: Allow control CDBs with data > 1 page
authorAndy Grover <agrover@redhat.com>
Tue, 17 Jan 2012 00:57:08 +0000 (16:57 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 18 Jan 2012 08:35:58 +0000 (08:35 +0000)
commit4949314c7283ea4f9ade182ca599583b89f7edd6
treebbd2316996bc2f19c1b3a8c24f8591f12d2330fa
parente8904dc5008ef92f0f62391d6557f03f921eeb32
target: Allow control CDBs with data > 1 page

We need to handle >1 page control cdbs, so extend the code to do a vmap
if bigger than 1 page. It seems like kmap() is still preferable if just
a page, fewer TLB shootdowns(?), so keep using that when possible.

Rename function pair for their new scope.

Signed-off-by: Andy Grover <agrover@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_alua.c
drivers/target/target_core_cdb.c
drivers/target/target_core_device.c
drivers/target/target_core_pr.c
drivers/target/target_core_pscsi.c
drivers/target/target_core_transport.c
include/target/target_core_backend.h
include/target/target_core_base.h