From: FUJITA Tomonori Date: Sat, 3 Mar 2007 00:55:54 +0000 (+0900) Subject: [SCSI] tgt: fix sesnse buffer problems X-Git-Tag: v2.6.22-rc1~1015^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc7e380a6a4c94f79a49c36bdb28062a750b3c2b;p=pandora-kernel.git [SCSI] tgt: fix sesnse buffer problems This patch simplify the way to notify LLDs of the command completion and addresses the following sense buffer problems: - can't handle both data and sense. - forces user-space to use aligned sense buffer tgt copies sense_data from userspace to cmnd->sense_buffer (if necessary), maps user-space pages (if necessary) and then calls host->transfer_response (host->transfer_data is removed). Signed-off-by: FUJITA Tomonori Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed