Chuck Ebbert wrote:But if that app has been waiting in D state, kill -9 does nothing to itOn 06/07/2007 11:41 AM, Andrew Morton wrote:The part that gets me here, and that others might be missing,Shouldn't sync should wait for truncate to finish?mount /var/lib/mythtv -oremount,roDid this succeed? If the application is still truncating that file, the
sync
umount /var/lib/mythtv
umount should have failed.
is that we are not waiting for ftruncate at this point.
We're waiting for unlink. The application that was doing ftruncate
in tiny little doses has been sent a kill-9 signal, so what should
be happening now (confirmed by disk activity LEDs) is the file should
just be getting deleted the same as if we did "rm bigfile" on it.
until it wakes up, doesn't it? So fd's are still open and umount fails.