-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix zfs_write() / mmap update_time() lock inversion
When a page is faulted in by filemap_page_mkwrite() this function may be called by update_time() with the file's mmap_sem held. Therefore it's necessary to use TXG_NOWAIT since we cannot release the mmap_sem, and even if we could, it would be undesirable to delay the page fault. TXG_NOTHROTTLE will be set as needed to bypass the write throttle. In the unlikely case the transaction cannot be assigned set z_atime_dirty=1 so at least the times will be updated when the file is closed. Signed-off-by: Brian Behlendorf <[email protected]>
- Loading branch information
1 parent
dda5500
commit f7a900f
Showing
1 changed file
with
39 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters