Changeset 8e13bfa in mainline
- Timestamp:
- 2009-06-10T18:49:37Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0d3b9474
- Parents:
- 0e31a2b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ops.c
r0e31a2b r8e13bfa 67 67 } pending_req_t; 68 68 69 FIBRIL_MUTEX_INITIALIZE(pending_lock); 69 70 LIST_INITIALIZE(pending_req); 70 71 … … 264 265 265 266 loop: 267 fibril_mutex_lock(&pending_lock); 266 268 for (cur = pending_req.next; cur != &pending_req; cur = cur->next) { 267 269 pending_req_t *pr = list_get_instance(cur, pending_req_t, link); 268 270 269 271 fs_handle_t fs_handle = fs_name_to_handle(pr->fs_name, true); 270 272 if (!fs_handle) … … 283 285 list_remove(cur); 284 286 free(pr); 287 fibril_mutex_unlock(&pending_lock); 288 fibril_yield(); 285 289 goto loop; 286 290 } 291 fibril_mutex_unlock(&pending_lock); 287 292 } 288 293 … … 463 468 pr->dev_handle = dev_handle; 464 469 link_initialize(&pr->link); 470 fibril_mutex_lock(&pending_lock); 465 471 list_append(&pr->link, &pending_req); 472 fibril_mutex_unlock(&pending_lock); 466 473 return; 467 474 }
Note:
See TracChangeset
for help on using the changeset viewer.