]> git.baikalelectronics.ru Git - kernel.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)
commitb42fa2d7153b0075d8136ffeece5f13439963fec
tree148f60e1db4efa563d3f4ee5e7bc735358b57a13
parent8a52361590cc960798bec7f7a62ca337069422af
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