All of lore.kernel.org
 help / color / mirror / Atom feed
From: WANG Cong <xiyou.wangcong@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: kernelnewbies@nl.linux.org
Subject: Re: what is spinlock depth
Date: Tue, 1 Feb 2011 06:40:06 +0000 (UTC)	[thread overview]
Message-ID: <ii89s6$8dp$1@dough.gmane.org> (raw)
In-Reply-To: AANLkTik4WQreo35jGLMQA16u+R-Ed036B3okrrx2nBGy@mail.gmail.com

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.


      parent reply	other threads:[~2011-02-01  6:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31 20:27 what is spinlock depth Sri Ram Vemulpali
2011-01-31 20:27 ` Sri Ram Vemulpali
2011-01-31 21:06 ` Jiri Slaby
2011-02-01  5:15 ` Rajat Sharma
2011-02-01  5:15   ` Rajat Sharma
2011-02-01  6:40 ` WANG Cong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ii89s6$8dp$1@dough.gmane.org' \
    --to=xiyou.wangcong@gmail.com \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.