mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Arjan van de Ven <arjan@infradead.org>
Cc: davej@redhat.com, mingo@elte.hu, akpm@osdl.org,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: starting mc triggers lockdep
Date: Sat, 8 Jul 2006 21:12:40 +1000	[thread overview]
Message-ID: <20060708111240.GA7612@gondor.apana.org.au> (raw)
In-Reply-To: <1152352400.3120.19.camel@laptopd505.fenrus.org>

On Sat, Jul 08, 2006 at 11:53:20AM +0200, Arjan van de Ven wrote:
>
> > > now for the third part, which involves the nfs client:
> > > stat on an nfs file, which ends up taken the i_mutex of a directory in
> > > the path (obvious), and then does 
> > >       [<ffffffff8022800b>] tcp_sendmsg+0x1e/0xb1a
> > >       [<ffffffff80248f4b>] inet_sendmsg+0x45/0x53
> > >       [<ffffffff80259d25>] sock_sendmsg+0x110/0x130
> > >       [<ffffffff8041f462>] kernel_sendmsg+0x3c/0x52
> > >       [<ffffffff885399e9>] xs_tcp_send_request+0x117/0x320 [sunrpc]
> > >       [<ffffffff885388d5>] xprt_transmit+0x105/0x21e [sunrpc]
> > >       [<ffffffff8853771e>] call_transmit+0x1f4/0x239 [sunrpc]
> > >       [<ffffffff8853c06e>] __rpc_execute+0x9b/0x1e6 [sunrpc]
> > >       [<ffffffff8853c1de>] rpc_execute+0x1a/0x1d [sunrpc]
> > >       [<ffffffff885364ad>] rpc_call_sync+0x87/0xb9 [sunrpc]
> > >       [<ffffffff885a2587>] nfs3_rpc_wrapper+0x2e/0x74 [nfs]
> > >       [<ffffffff885a2a14>] nfs3_proc_lookup+0xe0/0x163 [nfs]
> > > where tcp_sendmsg calls lock_sock. So this is the BC dependency.
> > 
> > This is an nfs inode.
> > 
> > Did I miss something?
> 
> is it not possible to nfs export /sys, and then mount it over loopback?

Possibly, but not with the backtrace above.  You'd need an nfs server
backtrace to get the real sysfs inode.

In any case, the sock lock from the other backtrace that you had
(udp setsockopt) cannot be held by the kernel nfs client or server
since the kernel nfs sockets are not visible to user space.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

  reply	other threads:[~2006-07-08 11:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-07 16:13 Dave Jones
2006-07-07 18:48 ` Arjan van de Ven
2006-07-08  3:00   ` Herbert Xu
2006-07-08  9:53     ` Arjan van de Ven
2006-07-08 11:12       ` Herbert Xu [this message]
2006-07-08 13:46       ` Christoph Hellwig

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=20060708111240.GA7612@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=akpm@osdl.org \
    --cc=arjan@infradead.org \
    --cc=davej@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®