~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to uspace/srv/vfs/vfs_ops.c

Replace the async_wait_for(msg, NULL) pattern in the error paths with
async_forget(msg).

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
                        vfs_exchange_release(exch);
137
137
                        
138
138
                        if (rc != EOK) {
139
 
                                async_wait_for(msg, NULL);
 
139
                                async_forget(msg);
140
140
                                fibril_rwlock_write_unlock(&namespace_rwlock);
141
141
                                async_answer_0(rid, rc);
142
142
                                return rc;
203
203
        
204
204
        if (rc != EOK) {
205
205
                vfs_exchange_release(exch);
206
 
                async_wait_for(msg, NULL);
 
206
                async_forget(msg);
207
207
                
208
208
                /* Mount failed, drop reference to mp_node. */
209
209
                if (mp_node)
218
218
        rc = async_data_write_start(exch, (void *) opts, str_size(opts));
219
219
        if (rc != EOK) {
220
220
                vfs_exchange_release(exch);
221
 
                async_wait_for(msg, NULL);
 
221
                async_forget(msg);
222
222
                
223
223
                /* Mount failed, drop reference to mp_node. */
224
224
                if (mp_node)