Changeset e811bde in mainline
- Timestamp:
- 2008-05-17T21:04:01Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce7311fc
- Parents:
- add5835
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
radd5835 re811bde 392 392 block_t *b; 393 393 394 futex_down(&parentp->idx->lock); 394 395 bps = fat_bps_get(parentp->idx->dev_handle); 395 396 dps = bps / sizeof(fat_dentry_t); … … 409 410 case FAT_DENTRY_LAST: 410 411 block_put(b); 412 futex_up(&parentp->idx->lock); 411 413 return NULL; 412 414 default: … … 418 420 /* hit */ 419 421 void *node; 422 /* 423 * Assume tree hierarchy for locking. We 424 * already have the parent and now we are going 425 * to lock the child. Never lock in the oposite 426 * order. 427 */ 420 428 fat_idx_t *idx = fat_idx_get_by_pos( 421 429 parentp->idx->dev_handle, parentp->firstc, 422 430 i * dps + j); 431 futex_up(&parentp->idx->lock); 423 432 if (!idx) { 424 433 /* … … 437 446 block_put(b); 438 447 } 439 448 futex_up(&parentp->idx->lock); 440 449 return NULL; 441 450 }
Note:
See TracChangeset
for help on using the changeset viewer.