From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC][PATCH] net: nfs: extend NFS_TIMEOUT
Date: Wed, 27 Jun 2012 13:32:55 +0900 [thread overview]
Message-ID: <4FEA8CF7.8030108@kmckk.co.jp> (raw)
In-Reply-To: <CANr=Z=ZujLbbsfSxXLyuXUOQX7x7bTy1z-ApixObf-mQgY46jw@mail.gmail.com>
Hi Joe, Thank you for responding.
(2012/06/27 0:30), Joe Hershberger wrote:
> On Tue, Jun 26, 2012 at 3:52 AM, Wolfgang Denk<wd@denx.de> wrote:
>> Dear Tetsuyuki Kobayashi,
>>
>> In message<4FE9711A.2090602@kmckk.co.jp> you wrote:
>>>
>>>>> Are you sure the problems are not in the board specific code?
>>>> OK. I will try the same thing on an in-tree board (maybe, panda board) to check if this is board specific or not.
>>>
>>> I did on a panda board. It has the same problem and this patch solves it. So this is not board specific problem. Please consider to change global setting of NFS_TIMEOUT in nfs.c.
>>
>> net/nfs.c is not the right place to make board specific adjustments.
>>
>> I am still not convinced this is an issue with the global code. It
>> could be your NFS server as well.
>
> I'm not convinced either. It clearly depends on the speed of your
> server, the speed of the connection, the size of the file you are
> transferring, etc.
>
Yes, NFS_TIMEOUT should be configurable.
>> If there are really boards which need longer timeouts, these should be
>> set in the board config files.
>
> In fact I would rather the constant were not defined there at all... but it is.
>
> At a minimum it should look like this:
>
>
> #define HASHES_PER_LINE 65 /* Number of "loading" hashes per line */
> #define NFS_RETRY_COUNT 30
> +#ifdef CONFIG_NFS_TIMEOUT
> +#define NFS_TIMEOUT CONFIG_NFS_TIMEOUT
> +#else
> #define NFS_TIMEOUT 2000UL
> +#endif
>
> static int fs_mounted;
> static unsigned long rpc_id;
>
>
> ...with CONFIG_NFS_TIMEOUT defined for your board.
>
Thanks. I agree this change.
next prev parent reply other threads:[~2012-06-27 4:32 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-25 12:35 [U-Boot] [RFC][PATCH] net: nfs: extend NFS_TIMEOUT Tetsuyuki Kobayashi
2012-06-25 21:34 ` Wolfgang Denk
2012-06-26 0:50 ` Tetsuyuki Kobayashi
2012-06-26 8:21 ` Tetsuyuki Kobayashi
2012-06-26 8:52 ` Wolfgang Denk
2012-06-26 15:30 ` Joe Hershberger
2012-06-26 18:34 ` Scott Wood
2012-06-26 18:45 ` Joe Hershberger
2012-06-27 4:32 ` Tetsuyuki Kobayashi [this message]
2012-07-03 11:22 ` [U-Boot] [RFC][PATCH] net: nfs: make NFS_TIMEOUT configurable Tetsuyuki Kobayashi
2012-07-03 13:47 ` Joe Hershberger
2012-07-03 14:13 ` Tetsuyuki Kobayashi
2012-07-04 2:47 ` [U-Boot] [RFC][PATCH v2] " Tetsuyuki Kobayashi
2012-07-04 5:40 ` Wolfgang Denk
2012-07-04 8:25 ` [U-Boot] [RFC][PATCH v3] " Tetsuyuki Kobayashi
2012-07-12 7:30 ` Tetsuyuki Kobayashi
2012-07-12 16:16 ` Joe Hershberger
2012-07-12 16:30 ` Tom Rini
2012-07-12 16:40 ` Joe Hershberger
2012-07-12 21:48 ` Tetsuyuki Kobayashi
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=4FEA8CF7.8030108@kmckk.co.jp \
--to=koba@kmckk.co.jp \
--cc=u-boot@lists.denx.de \
/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