]> git.baikalelectronics.ru Git - kernel.git/commit
target: Move passthrough CDB parsing into a common function
authorAndy Grover <agrover@redhat.com>
Tue, 19 May 2015 21:44:40 +0000 (14:44 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 31 May 2015 02:57:59 +0000 (19:57 -0700)
commit8277e775000a2c1c10eff012c4a4ea6b7f7fc071
tree1bed6667ac527acab7c2b2fb72e2bb1aa7b4cca5
parent4d7f51dfa8f57cfb44910b5297230a51bc5093c0
target: Move passthrough CDB parsing into a common function

Aside from whether they handle BIDI ops or not, parsing of the CDB by
kernel and user SCSI passthrough modules should be identical. Move this
into a new passthrough_parse_cdb() and call it from tcm-pscsi and tcm-user.

Reported-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ilias Tsitsimpis <iliastsi@arrikto.com>
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c
drivers/target/target_core_pscsi.c
drivers/target/target_core_user.c
include/target/target_core_backend.h