Re: Remotely rebooting a machine with state 'D' processes, how?

Andi Kleen (ak@muc.de)
11 Aug 2001 00:55:46 +0200


In article <E15VL6x-0007Jm-00@gondolin.me.apana.org.au>,
herbert@gondor.apana.org.au (Herbert Xu) writes:
> Linus Torvalds <torvalds@transmeta.com> wrote:
>> In article <20010810231906.A21435@bonzo.nirvana> you write:

>> You have to use the reboot() system call directly as root, with the
>> proper arguments to make it avoid doing even any sync. See

>> man 2 reboot

> How do you do this when the process in the D state is holding the BKL?

A process in D state sleeps and the BKL is always automatically dropped
when a process sleeps.

Bigger problems are other semaphores like inode sems, especially
when they belong to important shared libraries or directories.

-Andi
-
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/