[PATCHv2] NVMe: compat SG_IO ioctl

Vishal Verma vishal.l.verma at linux.intel.com
Wed Oct 23 17:01:58 EDT 2013


On Wed, 2013-10-23 at 13:07 -0600, Keith Busch wrote:
> For 32-bit versions of sg3-utils running on a 64-bit system. This is
> mostly a copy from the relevent portions of fs/compat_ioctl.c, with
> slight modifications for going through block_device_operations.
> 
> Signed-off-by: Keith Busch <keith.busch at intel.com>
> ---
> v1->v2:
> 
> Added the copying the status back into the 32-bit user structure at the
> end. I missed this when copying from the original implmenetation.
> 
>  drivers/block/nvme-core.c |   14 ++++-
>  drivers/block/nvme-scsi.c |  146 +++++++++++++++++++++++++++++++++++++++++++++
>  include/linux/nvme.h      |    1 +
>  3 files changed, 160 insertions(+), 1 deletion(-)
> 

Reviewed-by: Vishal Verma <vishal.l.verma at linux.intel.com>




More information about the Linux-nvme mailing list