From: Michal Schmidt <mschmidt@redhat.com>
To: Yuval Mintz <Yuval.Mintz@qlogic.com>, netdev <netdev@vger.kernel.org>
Cc: David Miller <davem@davemloft.net>
Subject: Re: [PATCH net] bnx2x: limit fw delay in kdump to 5s after boot
Date: Thu, 07 May 2015 23:19:57 +0200 [thread overview]
Message-ID: <554BD6FD.80308@redhat.com> (raw)
In-Reply-To: <B5657A6538887040AD3A81F1008BEC63D7C945@AVMB1.qlogic.org>
Dne 7.5.2015 v 21:03 Yuval Mintz napsal(a):
>> + if (is_kdump_kernel()) {
>> + ktime_t now = ktime_get_boottime();
>> + ktime_t fw_ready_time = ktime_set(5, 0);
>> +
>> + if (ktime_before(now, fw_ready_time))
>> + msleep(ktime_ms_delta(fw_ready_time, now));
>
> Can't really say I'm familiar with these APIs , but what about the lower
> msleep limit (is 20 or 50 milliseconds today?)?
> Shouldn't there be an msleep variant that's good for such cases?
> [Or is it a non-issue, since at most msleep will be inaccurate]
msleep(<small_number>) may sleep for a couple of jiffies more than one
would expect. I think that's what you mean by "the lower msleep limit".
It does not matter. It's not like we have to hit the 5 seconds mark exactly.
> Regardless, the patch itself looks good.
Thanks,
Michal
next prev parent reply other threads:[~2015-05-07 21:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-07 18:37 [PATCH net] bnx2x: limit fw delay in kdump to 5s after boot Michal Schmidt
2015-05-07 19:03 ` Yuval Mintz
2015-05-07 21:19 ` Michal Schmidt [this message]
2015-05-10 23:23 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=554BD6FD.80308@redhat.com \
--to=mschmidt@redhat.com \
--cc=Yuval.Mintz@qlogic.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).