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

Linus Torvalds (torvalds@transmeta.com)
Fri, 10 Aug 2001 15:58:02 -0700 (PDT)


On Sat, 11 Aug 2001, Herbert Xu wrote:
>
> 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?

If it's in D state, it will be sleeping, and will have released the BKL.

Besides, does the reboot system call actually get the BKL? I don't think
it should need it..

Linus

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