summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include/rtems/libio_.h
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/include/rtems/libio_.h
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/include/rtems/libio_.h')
-rw-r--r--cpukit/libcsupport/include/rtems/libio_.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h
index 0c5e9ed30b..c2fb975bf7 100644
--- a/cpukit/libcsupport/include/rtems/libio_.h
+++ b/cpukit/libcsupport/include/rtems/libio_.h
@@ -507,11 +507,14 @@ rtems_filesystem_global_location_t *rtems_filesystem_global_location_obtain(
* deferred. The next obtain call will do the actual release.
*
* @param[in] global_loc The global file system location. It must not be NULL.
+ * @param[in] deferred If true, then do a deferred release, otherwise release
+ * it immediately.
*
* @see rtems_filesystem_global_location_obtain().
*/
void rtems_filesystem_global_location_release(
- rtems_filesystem_global_location_t *global_loc
+ rtems_filesystem_global_location_t *global_loc,
+ bool deferred
);
void rtems_filesystem_location_detach(