[SCSI] compat: don't perform unneeded copy in sg_io code
authorAlexey Zaytsev <alexey.zaytsev@gmail.com>
Wed, 10 Jun 2009 19:56:56 +0000 (12:56 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 15 Jun 2009 15:09:30 +0000 (10:09 -0500)
commitdf59c0ad05182329688e514e5a9c3836fa208ea3
treebc46408a925f85eabccc979b84ac3dd7559cf0e7
parentdc577d554a274b79a6ad05e9e1ac20c320200599
[SCSI] compat: don't perform unneeded copy in sg_io code

The members from 'status' in struct sg_io_hdr to the last are used to
transfer information from kernel to user space.  The values that user
space sets are just ignored.

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
fs/compat_ioctl.c