summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/mount.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-16 11:54:29 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-16 15:33:56 +0100
commit66fac03fae3af9dded964b01c89662819dbfc5c2 (patch)
tree2d866941dc2ae2b633f62cfeec830e34d1e4c059 /cpukit/libcsupport/src/mount.c
parentpsxstrsignal01: New test (diff)
downloadrtems-66fac03fae3af9dded964b01c89662819dbfc5c2.tar.bz2
libio: Fix deadlock in location management
Perform a context-dependent deferred location release to avoid a deadlock on the file system instance locks, for example during a chdir(). Update #2936.
Diffstat (limited to 'cpukit/libcsupport/src/mount.c')
-rw-r--r--cpukit/libcsupport/src/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c
index 0d66477fe3..5328d24e7f 100644
--- a/cpukit/libcsupport/src/mount.c
+++ b/cpukit/libcsupport/src/mount.c
@@ -126,7 +126,7 @@ static int register_subordinate_file_system(
);
rtems_filesystem_mt_unlock();
} else {
- rtems_filesystem_global_location_release( mt_point_node );
+ rtems_filesystem_global_location_release( mt_point_node, true );
}
} else {
rtems_filesystem_eval_path_error( &ctx, EBUSY );