blk_mq_tag_to_rq() will always return a request if the command_id isI guess it is; this patch is essentially a protection against invalid frames, and as such affects all places.
in the valid range. Check if the request has been started. If we
blindly process the request we might double complete a request which
can be fatal.
Signed-off-by: Daniel Wagner <dwagner@xxxxxxx>
---
This patch is against nvme-5.12.
There is one blk_mq_tag_to_rq() in nvme_tcp_recv_ddgst() which I
didn't update as I am not sure if it's also needed.