Index: uspace/srv/vfs/vfs_ops.c
===================================================================
--- uspace/srv/vfs/vfs_ops.c	(revision 42a619b240617c4f0e4dd04ddf2366f3c5a0709a)
+++ uspace/srv/vfs/vfs_ops.c	(revision a347a110d7ea83c8d45c6874cb10eb949d5d595c)
@@ -224,6 +224,12 @@
 	}
 	
+	/*
+	 * Wait for the answer before releasing the exchange to avoid deadlock
+	 * in case the answer depends on further calls to the same file system.
+	 * Think of a case when mounting a FS on a file_bd backed by a file on
+	 * the same FS. 
+	 */
+	async_wait_for(msg, &rc);
 	vfs_exchange_release(exch);
-	async_wait_for(msg, &rc);
 	
 	if (rc == EOK) {
