[PATCH v2] nvme: use dev_err() to make message more useful
Christoph Hellwig
hch at lst.de
Mon Jan 6 01:58:13 PST 2025
On Tue, Dec 24, 2024 at 12:53:49PM +0200, Sagi Grimberg wrote:
>
>
> On 16/12/2024 19:44, Baruch Siach wrote:
>> pr_err() produces no prefix when called from pci.c, and only generic
>> prefix on other call sites. Switch to use dev_err() for more pleasant
>> debugging experience.
>>
>> Since we now pass nvme_ctrl to nvme_find_rq() directly, nvme_find_rq()
>> can figure blk_mq_tags by itself. Remove local helpers that are all
>> almost identical.
>>
>> Suggested-by: Christoph Hellwig <hch at lst.de>
>> Link: https://lore.kernel.org/r/20241212062241.GA5586@lst.de
>> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
>> ---
>>
>> v2: Pass qid to nvme_find_rq() instead of tags (Christoph)
>
> The call-sites are all printing similar errors. I'd just get rid of the
> error in
> nvme_find_rq...
True, I had completely missed that. So maybe we should just drop
the pr_err entirely.
More information about the Linux-nvme
mailing list