Re: [PATCH] lazy umount (1/4)

David Woodhouse (dwmw2@infradead.org)
Tue, 18 Sep 2001 10:07:25 +0100


alex@foogod.com said:
> >>1) Be able kill -9 processes from "D" state.

> Please note that there is a reason why the "D" state exists, and it is
> because there are certain times when interrupting a process can have
> significant consequences on the integrity of the entire filesystem (or
> other global resource) and must not be allowed for consistency. As
> it happens, most of the conditions which cause processes to get
> "stuck" in disk-wait state (usually because of hardware issues)
> happen to be exactly the places where it's most difficult to work
> around this (at least for physically-backed filesystems, less so for
> NFS et al)

What you say is true - implementing proper cleanup code for the case where
an operation is interrupted is complex and not always reasonably possible.

But that's an exceedingly poor excuse for not bothering to do so, in many
situations.

--
dwmw2

Filesystems are hard. Let's go shopping.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/