Index: uspace/srv/vfs/vfs_ops.c
===================================================================
--- uspace/srv/vfs/vfs_ops.c	(revision 0fe52ef6f9ff93ce0e6b31fe94d672377d33f55c)
+++ uspace/srv/vfs/vfs_ops.c	(revision c69646f882a7a12ae81b85a589c3f95239f23e8d)
@@ -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) {
