Re: [PATCH] nvme: change nvme_passthru_cmd64 to explicitly mark rsvd

From: Marta Rybczynska
Date: Tue Nov 05 2019 - 02:39:25 EST




----- On 5 Nov, 2019, at 07:15, Charles Machalow csm10495@xxxxxxxxx wrote:

> Changing nvme_passthru_cmd64 to add a field: rsvd2. This field is an explicit
> marker for the padding space added on certain platforms as a result of the
> enlargement of the result field from 32 bit to 64 bits in size.
> ---
> include/uapi/linux/nvme_ioctl.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/uapi/linux/nvme_ioctl.h b/include/uapi/linux/nvme_ioctl.h
> index e168dc59e..d99b5a772 100644
> --- a/include/uapi/linux/nvme_ioctl.h
> +++ b/include/uapi/linux/nvme_ioctl.h
> @@ -63,6 +63,7 @@ struct nvme_passthru_cmd64 {
> __u32 cdw14;
> __u32 cdw15;
> __u32 timeout_ms;
> + __u32 rsvd2;
> __u64 result;
> };
>

Looks good to me. However, please note that the new ioctl made it already to 5.3.8.

Regards,
Marta