[PATCH 03/20] nvmet: add structure members for file I/O

Christoph Hellwig hch at lst.de
Tue Apr 24 10:18:20 PDT 2018


On Wed, Apr 18, 2018 at 02:59:54PM -0400, Chaitanya Kulkarni wrote:
> This patch adds new members to perform I/O operations on the
> file backed namespaces.

In general this should go along with actually adding the code.

> +	struct file		*filp;

Please call this file instead of filp.

>  	u32			nsid;
>  	u32			blksize_shift;
>  	loff_t			size;
> @@ -222,6 +224,8 @@ struct nvmet_req {
>  	struct scatterlist	*sg;
>  	struct bio		inline_bio;
>  	struct bio_vec		inline_bvec[NVMET_MAX_INLINE_BIOVEC];
> +	struct kiocb            iocb;
> +	struct bio_vec          *bvec;

Can this be unioned with any block devices fields?



More information about the Linux-nvme mailing list