diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-07 08:57:18 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-07 08:58:22 +0100 |
commit | e16111b2cf1640a2ddb1cf3910c76836f875d465 (patch) | |
tree | 5be77ce9bf30a90410fb46f88c806ba3b3537782 /cpukit/libfs/src | |
parent | sparc/*/linkcmds*: Move ENTRY() from linkcmds.base to top linkcmds (diff) | |
download | rtems-e16111b2cf1640a2ddb1cf3910c76836f875d465.tar.bz2 |
NFS: Fix use of self-contained objects
Update #2843.
Diffstat (limited to 'cpukit/libfs/src')
-rw-r--r-- | cpukit/libfs/src/nfsclient/src/nfs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cpukit/libfs/src/nfsclient/src/nfs.c b/cpukit/libfs/src/nfsclient/src/nfs.c index 4eb4249606..f4f53191b5 100644 --- a/cpukit/libfs/src/nfsclient/src/nfs.c +++ b/cpukit/libfs/src/nfsclient/src/nfs.c @@ -652,13 +652,13 @@ static struct nfsstats { * linked ist of mounted NFS * and the num_mounted_fs field */ - rtems_id llock; + rtems_recursive_mutex llock; /* A lock for protecting misc * stuff within the driver. * The lock must only be held * for short periods of time. */ - rtems_id lock; + rtems_recursive_mutex lock; /* Our major number as assigned * by RTEMS */ @@ -691,7 +691,7 @@ static struct nfsstats { */ RpcUdpXactPool smallPool; RpcUdpXactPool bigPool; -} nfsGlob = {0, 0, 0xffffffff, 0, 0, 0, NULL, NULL}; +} nfsGlob = {RTEMS_RECURSIVE_MUTEX_INITIALIZER("NFS List"), RTEMS_RECURSIVE_MUTEX_INITIALIZER("NFS Misc"), 0xffffffff, 0, 0, 0, NULL, NULL}; /* * Global variable to tune the 'st_blksize' (stat(2)) value this nfs @@ -3082,7 +3082,7 @@ typedef struct ResolvePathArgRec_ { rtems_filesystem_location_info_t *loc; /* IN: location to resolve */ char *buf; /* IN/OUT: buffer where to put the path */ int len; /* IN: buffer length */ - rtems_id sync; /* IN: synchronization */ + rtems_binary_semaphore sync; /* IN: synchronization */ rtems_status_code status; /* OUT: result */ } ResolvePathArgRec, *ResolvePathArg; @@ -3130,7 +3130,6 @@ rtems_status_code status; arg.loc = loc; arg.buf = buf; arg.len = len; - arg.sync = 0; rtems_binary_semaphore_init(&arg.sync, "NFSress"); |