[PATCH] nvme-core: mark passthru requests RQF_QUIET flag

Alan Adamson alan.adamson at oracle.com
Thu Apr 7 13:35:10 PDT 2022



> On Apr 7, 2022, at 1:10 PM, Chaitanya Kulkarni <chaitanyak at nvidia.com> wrote:
> 
> On 4/7/22 04:52, Sagi Grimberg wrote:
>> 
>>>> Using RQF_QUIET or blk_rq_is_passrhrough() will mean no nvme 
>>>> admin-passthru command will log an error.
>>>> I ran into this using the blktests I’m coding up for verbose errors.  
>>>> Is this the behavior we want?
>>> 
>>> Well, you submitted the logging so we're curious about your use case.
>>> SCSI skips logging errors for internally submitted commands, but not for
>>> userspace passthrough.  So we could move the RQF_QUIET into
>>> __nvme_submit_sync_cmd / nvme_keep_alive_work / nvme_timeout / etc.
>>> 
>> 
>> Makes sense to me
> 
> This was my initial proposal to fix the call sites with internal
> passthru commands [1], so this should work.
> 
> -ck
> 
> [1]
> http://lists.infradead.org/pipermail/linux-nvme/2022-April/031160.html
> 
> 

It works (suppresses logging) for driver initiated admin cmds which is good, but it also suppresses logging
when running "nvme admin-passthru” which I don’t think we want.

Alan



More information about the Linux-nvme mailing list