lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ii89s6$8dp$1@dough.gmane.org>
Date:	Tue, 1 Feb 2011 06:40:06 +0000 (UTC)
From:	WANG Cong <xiyou.wangcong@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	kernelnewbies@...linux.org
Subject: Re: what is spinlock depth

On Mon, 31 Jan 2011 15:27:08 -0500, Sri Ram Vemulpali wrote:

> Hi all,
> 
> I am reading spinlock code and looking at struct raw_spinlock. I found
> struct lockdep_map as member.
...
> Can anyone help me explain, how this struct helps the spinlock. Why do
> we need lockdepth.

Here "lockdep" is short for Lock Dependence, not Lock Depth.

We do have lock depth things, e.g. ->lock_depth of struct task_struct,
which means the nested level of BKL. But spinlock can't be nested.

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ