mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: bsuparna@in.ibm.com
To: "David S. Miller" <davem@redhat.com>
Cc: aviro@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: Oddness in i_shared_lock and page_table_lock nesting hierarchies ?
Date: Fri, 10 Nov 2000 14:59:27 +0530	[thread overview]
Message-ID: <CA256993.0034D230.00@d73mta05.au.ibm.com> (raw)


>Let me save you some time, below is the fix I sent to
>Linus this evening:

Yes it does :-) Thanks.

I had started making changes along similar lines, and then as
I realized all the places it'd affect, I got a little diverted trying to
see if there was a way to do it without having to bring the locks
out of the common insert routines; whether it was possible to
avoid having to hold i_shared_lock and page_table_lock
simultaneously (other than in vmtruncate of course), through a
careful sequencing of steps, since we  really need to serialize
only with truncate and the page stealer (as the mm sem takes
care of most other cases). Unmap does that now as it crosses
multiple objects (unlike the other cases where luckily we just
have one object at a time, which makes it possible to bring
the i_shared_lock to the top).

But it gets kind of complicated and harder to verify correctness
or generalize such an approach.
So your fix looks like a natural and consistent way to do this.

Now I can get back to what I was originally working on when I
hit this :-)

- Suparna



  Suparna Bhattacharya
  Systems Software Group, IBM Global Services, India
  E-mail : bsuparna@in.ibm.com
  Phone : 91-80-5267117, Extn : 2525


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

             reply	other threads:[~2000-11-10  9:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-10  9:29 bsuparna [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-11-10  6:55 aprasad
2000-11-10  7:34 ` David S. Miller
2000-11-09 12:16 bsuparna
2000-11-10  6:44 ` David S. Miller
2000-11-06 13:50 bsuparna
2000-11-05  5:51 bsuparna
2000-11-06  3:14 ` David S. Miller
2000-11-06 18:42 ` tytso

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=CA256993.0034D230.00@d73mta05.au.ibm.com \
    --to=bsuparna@in.ibm.com \
    --cc=aviro@redhat.com \
    --cc=davem@redhat.com \
    --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 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®