linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Stephen C. Tweedie" <sct@redhat.com>
To: "Juan J. Quintela" <quintela@fi.udc.es>
Cc: linux-mm@kvack.org, linux-kernel@vger.rutgers.edu,
	Linus Torvalds <torvalds@transmeta.com>,
	Stephen Tweedie <sct@redhat.com>
Subject: Re: Helding the Kernel lock while doing IO???
Date: Sat, 6 May 2000 12:48:09 +0100	[thread overview]
Message-ID: <20000506124809.C4994@redhat.com> (raw)
In-Reply-To: <yttpur0wjlk.fsf@vexeta.dc.fi.udc.es>; from quintela@fi.udc.es on Sat, May 06, 2000 at 03:30:47AM +0200

Hi,

On Sat, May 06, 2000 at 03:30:47AM +0200, Juan J. Quintela wrote:
> 
> read_swap_cache is called synchronously, then we can have to wait
> until we read the page to liberate the lock kernel.  It is intended?
> I am losing some detail?

Holding the big kernel lock while we sleep is quite legal.  The 
scheduler drops the lock while we sleep and reacquires it when we
are rescheduled.  The lock_kernel() lock is not at all like other
spinlocks.

--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

  parent reply	other threads:[~2000-05-06 11:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-06  1:30 Juan J. Quintela
2000-05-06  1:34 ` Helding the Kernel lock while doing IO??? (take 2) Juan J. Quintela
2000-05-06 11:48 ` Stephen C. Tweedie [this message]
2000-05-14 22:02   ` PATCH: Re: Helding the Kernel lock while doing IO??? Juan J. Quintela
2000-05-06 13:16 ` Andrea Arcangeli

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=20000506124809.C4994@redhat.com \
    --to=sct@redhat.com \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux-mm@kvack.org \
    --cc=quintela@fi.udc.es \
    --cc=torvalds@transmeta.com \
    /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