From: Sreekanth Reddy Date: Fri, 12 Sep 2014 10:05:21 +0000 (+0530) Subject: mpt2sas: Avoid type casting for direct I/O commands X-Git-Tag: fixes-for-v3.18-merge-window~25^2^2~126 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daeaa9df92bd742f4e6d4d6039d689277a8e31bd;p=pandora-kernel.git mpt2sas: Avoid type casting for direct I/O commands A type casting error caused the max volume LBA to be truncated from 64 to 32 bits. The virtual LBA would also get truncated to 32 bits in the case of a 16-byte READ/WRITE command. Rewrite entire function to get rid of code duplication and type casts. Use get/put_unaligned wrappers to extract and replace the LBA field in the MPI request CDB. Signed-off-by: Martin K. Petersen Tested-by: Sreekanth Reddy Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed