[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5715ef78-eaf1-dcb6-c2a2-f4725e1a01c4@grimberg.me>
Date: Wed, 31 Mar 2021 15:24:49 -0700
From: Sagi Grimberg <sagi@...mberg.me>
To: "Ewan D. Milne" <emilne@...hat.com>,
Hannes Reinecke <hare@...e.de>, Keith Busch <kbusch@...nel.org>
Cc: Daniel Wagner <dwagner@...e.de>, linux-nvme@...ts.infradead.org,
linux-kernel@...r.kernel.org, Jens Axboe <axboe@...com>,
Christoph Hellwig <hch@....de>
Subject: Re: [PATCH v2] nvme-tcp: Check if request has started before
processing it
>> What we can do, though, is checking the 'state' field in the tcp
>> request, and only allow completions for commands which are in a state
>> allowing for completions.
>>
>> Let's see if I can whip up a patch.
>
> That would be great. BTW in the crash dump I am looking at now, it
> looks like pdu->command_id was zero in nvme_tcp_recv_data(), and
> blk_mq_tag_to_rq() returned a request struct that had not been used.
> So I think we do need to check that the tag was actually allocated.
request tag can't be zero? I forget...
Powered by blists - more mailing lists