On Tue, Jun 14, 2022 at 10:49:42AM -0700, Bart Van Assche wrote: > @@ -854,6 +854,10 @@ static inline blk_status_t nvme_setup_rw(struct nvme_ns *ns, > if (req->cmd_flags & REQ_RAHEAD) > dsmgmt |= NVME_RW_DSM_FREQ_PREFETCH; > > + if (blk_rq_is_seq_write(req)) > + nvme_req(req)->max_retries += req->q->nr_hw_queues * > + req->q->nr_requests; Even with the weakest nvme devices, the result of this is unlikely to fit in a u8.