[RFC v3 1/1] nvme: add passthrough error logging opt-in
alan.adamson at oracle.com
alan.adamson at oracle.com
Tue Apr 4 09:20:40 PDT 2023
On 4/3/23 4:29 PM, Sagi Grimberg wrote:
>
>>>>>> + if (!nr->ctrl->error_logging)
>>>>>> + req->rq_flags |= RQF_QUIET;
>>>>>> +
>>>>>> + memcpy(nr->cmd, cmd, sizeof(*cmd));
>>>>>
>>>>> Question, if we already introduce granularity to this setting, why
>>>>> not per-ns? why only per controller? I'd think it makes more
>>>>> sense to do this per ns. Will also remove access to ctrl in the hot
>>>>> path...
>>>>
>>>>
>>>> Meaning we should have both:
>>>>
>>>> /sys/class/nvme/nvme0/passthrough_logging
>>>>
>>>> /sys/class/nvme/nvme0/nvme0n1/passthrough_logging
>>>
>>> No, just the namespace logging, why would we need the
>>> controller as well?
>>
>> For Admin Commands?
>
> Yea.... you have those...
For namespace errors (read, write, etc), passthrough initiated or not,
shouldn't they always be logged?
Alan
More information about the Linux-nvme
mailing list