From: Christoph Hellwig Date: Tue, 6 Nov 2012 20:24:09 +0000 (-0800) Subject: target: pass sense_reason as a return value X-Git-Tag: v3.8-rc1~94^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de103c93aff0bed0ae984274e5dc8b95899badab;p=pandora-kernel.git target: pass sense_reason as a return value Pass the sense reason as an explicit return value from the I/O submission path instead of storing it in struct se_cmd and using negative return values. This cleans up a lot of the code pathes, and with the sparse annotations for the new sense_reason_t type allows for much better error checking. (nab: Convert spc_emulate_modesense + spc_emulate_modeselect to use sense_reason_t with Roland's MODE SELECT changes) Signed-off-by: Christoph Hellwig Cc: Roland Dreier Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed