]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
target: Enforce 1 page max for control cdb buffer sizes
authorAndy Grover <agrover@redhat.com>
Sat, 9 Jul 2011 00:04:53 +0000 (17:04 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 22 Jul 2011 09:37:48 +0000 (09:37 +0000)
commitd0229ae3fed59b4009e33f836d9ad4e312294d46
tree148f60e1db4efa563d3f4ee5e7bc735358b57a13
parent05d1c7c0d0db4cc25548d9aadebb416888a82327
target: Enforce 1 page max for control cdb buffer sizes

Due to all cdbs' data buffers being referenced by scatterlists, buffers
of more than a page are not contiguous. Instead of handling this in all
control command handlers, we may be able to get away with just limiting
control cdb data buffers to one page. The only control CDBs we handle that
have potentially large data buffers are REPORT LUNS and UNMAP, so if we
didn't want to live with this limitation, they would need to be modified
to walk the pages in the data buffer's sgl.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c
include/target/target_core_base.h