Changes in uspace/srv/vfs/vfs_ops.c [c2f4b6b:3a4b3ba] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ops.c
rc2f4b6b r3a4b3ba 781 781 static void vfs_rdwr(ipc_callid_t rid, ipc_call_t *request, bool read) 782 782 { 783 vfs_info_t *vi;784 783 785 784 /* … … 808 807 fibril_mutex_lock(&file->lock); 809 808 810 vi = fs_handle_to_info(file->node->fs_handle);811 assert(vi);812 813 809 /* 814 810 * Lock the file's node so that no other client can read/write to it at 815 * the same time unless the FS supports concurrent reads/writes and its 816 * write implementation does not modify the file size. 817 */ 818 if (read || (vi->concurrent_read_write && vi->write_retains_size)) 811 * the same time. 812 */ 813 if (read) 819 814 fibril_rwlock_read_lock(&file->node->contents_rwlock); 820 815 else … … 862 857 863 858 /* Unlock the VFS node. */ 864 if (read || (vi->concurrent_read_write && vi->write_retains_size))859 if (read) 865 860 fibril_rwlock_read_unlock(&file->node->contents_rwlock); 866 861 else {
Note:
See TracChangeset
for help on using the changeset viewer.