Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tmpdir-setup: use lazy umount
Browse files Browse the repository at this point in the history
The umount of the job tmpdir often takes a lot of time (minutes!) when
the user write a log of data to it, because there are many dirty pages
which are written to the disk before the umount completes.

This writing is obviously a waste of resources, because as soon as the
unmount is finished, the backup image for the filesystem is destroyed
anyway.

Unfortunatly, we currenty don't have a solid way to avoid the
unnecessary writeback.

Use lazy umount so that at least mxqd doesn't block while the writeback
is happening.
donald committed May 5, 2022
1 parent c6b51a8 commit ef03b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/tmpdir-setup
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ cmd_cleanup() {

mountpoint=$mntdir/$MXQ_JOBID

umount $mountpoint
umount -l $mountpoint
rmdir $mountpoint
}

0 comments on commit ef03b1b

Please sign in to comment.