diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-23 11:39:50 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-29 12:25:34 +0200 |
commit | 847ad441cda2466680107b0b7607a8ceca3b17d4 (patch) | |
tree | d7ac7a11acd1c73faa39f250b54d08e96d21fedb /cpukit/libcsupport/src/sup_fs_location.c | |
parent | shell/lsof: Use fprintf() instead of printk() (diff) | |
download | rtems-847ad441cda2466680107b0b7607a8ceca3b17d4.tar.bz2 |
Filesystem: Wait for unmount() to finish
Diffstat (limited to 'cpukit/libcsupport/src/sup_fs_location.c')
-rw-r--r-- | cpukit/libcsupport/src/sup_fs_location.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/sup_fs_location.c b/cpukit/libcsupport/src/sup_fs_location.c index 4ebf5f04d7..f991024762 100644 --- a/cpukit/libcsupport/src/sup_fs_location.c +++ b/cpukit/libcsupport/src/sup_fs_location.c @@ -213,5 +213,14 @@ void rtems_filesystem_do_unmount( rtems_filesystem_mt_unlock(); rtems_filesystem_global_location_release(mt_entry->mt_point_node); (*mt_entry->ops->fsunmount_me_h)(mt_entry); + + if (mt_entry->unmount_task != 0) { + rtems_status_code sc = + rtems_event_send(mt_entry->unmount_task, RTEMS_FILESYSTEM_UNMOUNT_EVENT); + if (sc != RTEMS_SUCCESSFUL) { + rtems_fatal_error_occurred(0xdeadbeef); + } + } + free(mt_entry); } |