[PATCH V13 4/4] nvmet: add req cns error complete helper

Christoph Hellwig hch at lst.de
Thu Apr 8 08:24:36 BST 2021


On Wed, Apr 07, 2021 at 05:14:27PM -0700, Chaitanya Kulkarni wrote:
> We report error and complete the request when identify cns value
> is not handled in nvmet_execute_identify(),
> nvmet_execute_identify_cns_cs_ctrl(), and
> nvmet_execute_identify_cns_cs_ns().
> 
> Add a helper nvmet_req_cns_error_compplete() to remove the duplicate
> code from all the above three functions.

Please do this from the beginning instead of fixing up the just
introduced code.



More information about the Linux-nvme mailing list