-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tgt_loop: send ioctl(DISCARD) for simulating block device discard
With FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, vfs_fallocate() is translated to write zero, this way may slow down a lot when running big size discard, such as mkfs. This patch fixes one horrible mkfs performance issue. Signed-off-by: Ming Lei <[email protected]>
- Loading branch information
Showing
1 changed file
with
17 additions
and
2 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