Skip to content

Commit

Permalink
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.
  • Loading branch information
donald committed May 9, 2022
1 parent 16b0457 commit 63fd772
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
Expand Up @@ -54,7 +54,7 @@ cmd_cleanup() {

mountpoint=$mntdir/$MXQ_JOBID

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

Expand Down

0 comments on commit 63fd772

Please sign in to comment.