From e16111b2cf1640a2ddb1cf3910c76836f875d465 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 7 Feb 2018 08:57:18 +0100 Subject: NFS: Fix use of self-contained objects Update #2843. --- cpukit/libfs/src/nfsclient/src/nfs.c | 9 ++++----- 1 file 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"); -- cgit v1.2.3