[PATCH] nvme/{common/nvme, 051, 052}: introduce def_nsid

Chaitanya Kulkarni chaitanyak at nvidia.com
Wed Oct 30 00:38:23 PDT 2024


On 10/30/24 00:31, Shinichiro Kawasaki wrote:
> On Oct 29, 2024 / 11:19, Guixin Liu wrote:
>> Use def_nsid instead of hard code, the default of def_nsid is 1.
> Hi Guixin, thnaks for the patch.
>
> May I know the motivation to introduce def_nsid? Does it aim to improve code
> readability? Or does it aim to allow testing various def_nsid values?
>

I found it useful where we don't have to hard code the values also
it's easier to search for the default namespace id than individually
looking for it when it's require as number of testcases are growing.

Thanks for suggesting fixes on other testcases.

-ck




More information about the Linux-nvme mailing list