From: Nicholas Bellinger Date: Tue, 9 Aug 2011 02:08:23 +0000 (-0700) Subject: target: Fix WRITE_SAME usage with transport_get_size X-Git-Tag: v3.1-rc4~43^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12850626e2717f866a94e6ced724e3efe5a0aab8;p=pandora-kernel.git target: Fix WRITE_SAME usage with transport_get_size For all flavours of WRITE_SAME, we only expect to handle a single block of data-out buffer payload, regardless of the number of logical blocks presented in the CDB. This patch changes all flavours of WRITE_SAME in transport_generic_cmd_sequencer() to pass '1' into transport_get_size() instead of the extracted 'sectors' to properly handle the default usage of sg_write_same without the --xferlen parameter. Reported-by: Eric Seppanen Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed