Re: [PATCH v3 071/114] lockdep: add lockdep_assert_not_held

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 30, 2014 at 11:49:40AM -0400, Jeff Layton wrote:
> We currently have the ability to call lockdep_assert_held to throw a
> warning when a spinlock isn't held in a codepath. There are also times
> when we'd like to throw a warning when a lock is held (i.e. when there
> is the potential for deadlock with atomic_dec_and_lock or similar).

So I'm not getting it; if there's deadlock potential, lockdep would
already report so, right?

That is, lockdep is very good a yelling when you try to acquire a lock
you're already holding.

Attachment: pgpvQ3ZFHn0sR.pgp
Description: PGP signature


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux