-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LU-6155 osd-zfs: dbuf_hold_impl() called without the lock
The osd-zfs osd_count_not_mapped() calls dbuf_hold_impl() without the required lock. In addition, dbuf_hold_impl() is an internal function and has the expensive side effect of reading the block from disk which would convert a full-block write into a read-modify-write. Since space estimation with ZFS is complicated any way, just use the worst case as a rough estimate where a snapshot holds all current blocks, i.e. no old space can be freed after the COW. Skip test sanity-quota/23 on ZFS because overwrites on ZFS are not guarenteed to be space neutral, and new worst-case assumptions will always cause this test to fail. Change-Id: Idf6f2ff80ff185ca8c0f38e1002ff90e457c3ca0 Signed-off-by: Isaac Huang <[email protected]> Signed-off-by: Nathaniel Clark <[email protected]> Reviewed-on: http://review.whamcloud.com/13541 Tested-by: Jenkins Reviewed-by: Alex Zhuravlev <[email protected]> Tested-by: Maloo <[email protected]> Reviewed-by: Oleg Drokin <[email protected]>
- Loading branch information
1 parent
bee9c18
commit 10ebe81
Showing
3 changed files
with
38 additions
and
72 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
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
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