[PATCH v2 3/3] nvme: add test for controller rescan under I/O load
Martin Wilck
mwilck at suse.com
Mon Aug 26 00:58:58 PDT 2024
On Mon, 2024-08-26 at 11:07 +0530, Nilay Shroff wrote:
> >
> The "rand()" function in 'awk' returns a floating point value between
> 0 and 1 (i.e. [0, 1]). So it's possible to have sleep for some cases
> go
> upto ~5.1 seconds. So if the intention is to sleep between 0.1 and 5
> seconds precisely then we may want to use,
>
> sleep(0.1 + 4.9 * rand());
>
Yes, I know. I thought it didn't really matter as the 5s limit was
arbitrary anyway.
> However this is not a major problem and we may ignore.
> Otherwise, code looks good to me.
>
> Reviewed-by: Nilay Shroff (nilay at linux.ibm.com)
>
Thanks!
Martin
More information about the Linux-nvme
mailing list