target: Allow control CDBs with data > 1 page
authorAndy Grover <agrover@redhat.com>
Tue, 17 Jan 2012 00:57:08 +0000 (16:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 00:31:09 +0000 (16:31 -0800)
commitd2227f84ba0e97906153ac83db13213fb2e3938d
treebc965679916c94fc5ee2fb6e694b83f7f3c07f43
parent2ab9cc5409e9871927ef2799b41af3288cf7114c
target: Allow control CDBs with data > 1 page

commit 4949314c7283ea4f9ade182ca599583b89f7edd6 upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.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_base.h
include/target/target_core_transport.h