Changeset 39217 in vbox
- Timestamp:
- Nov 7, 2011 3:25:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vnode.c
r39115 r39217 1602 1602 { 1603 1603 int error = 0; 1604 int is_recursive = 0; 1604 1605 page_t **pageliststart = pagelist; 1605 1606 sfnode_t *node = VN2SFN(dvp); … … 1623 1624 *protp = PROT_ALL; 1624 1625 1625 mutex_enter(&sffs_lock); 1626 /* 1627 * The buffer passed to sffs_write may be mmap'd so we may get a 1628 * pagefault there, in which case we'll end up here with this thread 1629 * already owning the mutex. Mutexes aren't recursive. 1630 */ 1631 if (mutex_owner(&sffs_lock) == curthread) 1632 is_recursive = 1; 1633 else 1634 mutex_enter(&sffs_lock); 1626 1635 1627 1636 /* Don't map pages past end of the file. */ … … 1645 1654 1646 1655 *pagelist = NULL; 1647 mutex_exit(&sffs_lock); 1656 if (!is_recursive) 1657 mutex_exit(&sffs_lock); 1648 1658 return (error); 1649 1659 } … … 1677 1687 1678 1688 *pagelist = NULL; 1679 mutex_exit(&sffs_lock); 1689 if (!is_recursive) 1690 mutex_exit(&sffs_lock); 1680 1691 return (error); 1681 1692 }
Note:
See TracChangeset
for help on using the changeset viewer.