diff options
| author | Anton Eidelman <[email protected]> | 2020-02-10 18:37:18 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-02-14 17:12:04 +0000 |
| commit | 2d570a7c0251c594489a2c16b82b14ae30345c03 (patch) | |
| tree | 846d1827b352e9d0f3dffd294f507125f863e756 /drivers/mtd/lpddr/lpddr_cmds.c | |
| parent | bcache: remove macro nr_to_fifo_front() (diff) | |
| download | kernel-2d570a7c0251c594489a2c16b82b14ae30345c03.tar.gz kernel-2d570a7c0251c594489a2c16b82b14ae30345c03.zip | |
nvme/tcp: fix bug on double requeue when send fails
When nvme_tcp_io_work() fails to send to socket due to
connection close/reset, error_recovery work is triggered
from nvme_tcp_state_change() socket callback.
This cancels all the active requests in the tagset,
which requeues them.
The failed request, however, was ended and thus requeued
individually as well unless send returned -EPIPE.
Another return code to be treated the same way is -ECONNRESET.
Double requeue caused BUG_ON(blk_queued_rq(rq))
in blk_mq_requeue_request() from either the individual requeue
of the failed request or the bulk requeue from
blk_mq_tagset_busy_iter(, nvme_cancel_request, );
Signed-off-by: Anton Eidelman <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions
