NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/38990: Unmounting a disk fails the first time



On Jun 21,  8:39pm, dholland-bugs%netbsd.org@localhost (David Holland) wrote:
-- Subject: Re: kern/38990: Unmounting a disk fails the first time

| On Fri, Jun 20, 2008 at 09:30:02AM +0000, Andrew Doran wrote:
|  >>   $ sudo mount -t ffs /dev/sd0e /mnt
|  >>   $ rsync /something/ /mnt/something/ # a large directory tree
|  >>   $ sudo umount /mnt
|  >>   umount: /mnt: Device busy
|  >>   $ sync ; sleep 1 ; sync ; sleep 1 ; sync
|  >>   $ sudo umount /mnt
|  >>   [ no error ]
|  >  
|  >  It's due to the kernel's 'vrele' thread. Sometimes we have to defer
|  >  VOP_INACTIVE because of the horrible locking requirements. It always
|  >  gets done for layered file systems. The delay is about one second.
| 
| Is it worth installing a workaround into umount(8)?

It is worth fixing the syscall :-)

christos


Home | Main Index | Thread Index | Old Index