Skip to content

Commit

Permalink
net: nfs: make NFS_TIMEOUT configurable
Browse files Browse the repository at this point in the history
NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs to adjust.
This patch enables to override NFS_TIMEOUT by defining CONFIG_NFS_TIMEOUT in a board specific config file.

Signed-off-by: Tetsuyuki Kobayashi <[email protected]>
  • Loading branch information
Tetsuyuki Kobayashi authored and jhershbe committed Jul 12, 2012
1 parent 0878222 commit 48a3e99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -2149,6 +2149,13 @@ The following options need to be configured:

Timeout waiting for an ARP reply in milliseconds.

CONFIG_NFS_TIMEOUT

Timeout in milliseconds used in NFS protocol.
If you encounter "ERROR: Cannot umount" in nfs command,
try longer timeout such as
#define CONFIG_NFS_TIMEOUT 10000UL

- Command Interpreter:
CONFIG_AUTO_COMPLETE

Expand Down
6 changes: 5 additions & 1 deletion net/nfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@

#define HASHES_PER_LINE 65 /* Number of "loading" hashes per line */
#define NFS_RETRY_COUNT 30
#define NFS_TIMEOUT 2000UL
#ifndef CONFIG_NFS_TIMEOUT
# define NFS_TIMEOUT 2000UL
#else
# define NFS_TIMEOUT CONFIG_NFS_TIMEOUT
#endif

static int fs_mounted;
static unsigned long rpc_id;
Expand Down

0 comments on commit 48a3e99

Please sign in to comment.