Re: [vfs/tty] possible circular locking dependency detected

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Wednesday, May 14, 2008 - 8:39 am

On 05/13, Andrew Morton wrote:

Confused. I don't understand why do lockdep reports tasklist_lock vs ctrl_lock
conflict. What we seem to have is the problem with ->ctrl_lock vs ->siglock.

tty_check_change()->kill_pgrp() takes ->siglock under ->ctrl_lock, while
usually we take them in reverse order, proc_set_tty() for example.

The patch looks correct anyway, but perhaps tty_check_change() doesn't need
->ctrl_lock at all? We don't dereference tty->pgrp.

Oleg.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[vfs/tty] possible circular locking dependency detected, Marcin Slusarz, (Mon May 12, 11:32 am)
Re: [vfs/tty] possible circular locking dependency detected, Oleg Nesterov, (Wed May 14, 8:39 am)