[PATCH v3] nvme: Honor RTD3 Entry Latency for shutdowns

Martin K. Petersen martin.petersen at oracle.com
Fri Aug 25 16:16:21 PDT 2017


Keith,

> My first experience with the kernel's 'clamp', so I had to look up
> that macro. The above does not appear to fit the usage since 'clamp'
> returns a value rather than directly clamp the parameter; I think it
> should be:
>
> 	transition_time = clamp(transition_time, shutdown_timeout, 60);

Ah, my brain was seduced by the do_div() above.

Fixed and tested in qemu.

-- 
Martin K. Petersen	Oracle Linux Engineering



More information about the Linux-nvme mailing list