Thread (19 messages) 19 messages, 4 authors, 2021-01-15

Re: [PATCH 3/3] nvme: add parameter command_retry to enable retry

From: Minwoo Im <hidden>
Date: 2021-01-12 08:45:19

Hello,

On 21-01-12 09:09:26, Christoph Hellwig wrote:
On Fri, Jan 08, 2021 at 11:46:59PM +0900, Minwoo Im wrote:
quoted
This patch added a module parameter named command_retry to turn on the
command retry feature in this driver.  If turning it on,
REQ3_FAILFAST_DRIVER will not be set to requests so that retry can be
reached out to nvme_retry_req() based on the module parameter.
Why would we want to do that, and if so why only conditional on a module
parameter?
If reqeust->cmd_flags are set with the REQ_FAILFAST_DRIVER in
nvme_init_request(), then it will always go to COMPLETE case rather than
RETRY in nvme_decide_disposition():

	if (blk_noretry_request(req) ||
		...

And I thought that to make command delay feature enabled, module
parameter was a good start to toggle this feature.

Thanks!

_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help