Changeset 39c3b7f9 in mainline


Ignore:
Timestamp:
2017-03-16T17:29:53Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7f59d6c
Parents:
5a2b765
Message:

Put the file earlier to avoid deadlock with vfs_rdwr_internal()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_pager.c

    r5a2b765 r39c3b7f9  
    7272
    7373        file->pos = offset;
     74        vfs_file_put(file);
    7475
    7576        size_t total = 0;
     
    8485                chunk.size = page_size - total;
    8586        } while (total < page_size);
    86 
    87         vfs_file_put(file);
    8887
    8988        async_answer_1(rid, rc, (sysarg_t) page);
Note: See TracChangeset for help on using the changeset viewer.