mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
port async unlinked drain from illumos-nexenta
This patch is an async implementation of the existing sync zfs_unlinked_drain() function. This function is called at mount time and is responsible for freeing znodes that we didn't get to freeing before. We don't have to hold mounting of the dataset until the unlinked list is fully drained as is done now. Since we can process the unlinked set asynchronously this results in a better user experience when mounting a dataset with entries in the unlinked set. Reviewed by: Jorgen Lundman <lundman@lundman.net> Reviewed by: Tom Caputi <tcaputi@datto.com> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Matt Ahrens <mahrens@delphix.com> Reviewed by: Paul Dagnelie <pcd@delphix.com> Signed-off-by: Alek Pinchuk <apinchuk@datto.com> Closes #8142
This commit is contained in:
@@ -1149,6 +1149,21 @@ Rate limit delay zevents (which report slow I/Os) to this many per second.
|
||||
Default value: 20
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fBzfs_unlink_suspend_progress\fR (uint)
|
||||
.ad
|
||||
.RS 12n
|
||||
When enabled, files will not be asynchronously removed from the list of pending
|
||||
unlinks and the space they consume will be leaked. Once this option has been
|
||||
disabled and the dataset is remounted, the pending unlinks will be processed
|
||||
and the freed space returned to the pool.
|
||||
This option is used by the test suite to facilitate testing.
|
||||
.sp
|
||||
Uses \fB0\fR (default) to allow progress and \fB1\fR to pause progress.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
|
||||
Reference in New Issue
Block a user