public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: Andrew Morton <akpm@osdl.org>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: + uml-sigwinch-handling-cleanup.patch added to -mm tree
Date: Thu, 5 Jan 2006 17:27:37 -0500	[thread overview]
Message-ID: <20060105222737.GA10369@ccure.user-mode-linux.org> (raw)
In-Reply-To: <200601052054.37512.blaisorblade@yahoo.it>

On Thu, Jan 05, 2006 at 08:54:37PM +0100, Blaisorblade wrote:
> Meanwhile, the whole content of the new free_winch(), including some syscalls
> on the host, and various other stuff, is brought back under the 
> winch_handler_lock.

And?  There's no particular problem with host system calls being under
a lock.  And the various other stuff is a kfree and a free_irq, which
I don't think have a problem being called under a spinlock.

> I had carefully brought that stuff out keeping only the list access under the
> lock, probably while fixing some "scheduling while atomic" warnings - once 
> the element is out of the list it's unreachable thus (IMHO) safely 
> accessible.

Probably?  What in there is sensitive to being called under a lock?

> So, list_del should be brought out from free_winch, which would then become 
> callable without the spinlock held.

That would increase the amount of code, with no gain that I can see.
The list_del would be duplicated, and the loop in winch_cleanup would
have to drop and reacquire the lock around each call to free_winch.

				Jeff

  reply	other threads:[~2006-01-05 21:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200601042323.k04NNti4021942@shell0.pdx.osdl.net>
2006-01-05 19:54 ` + uml-sigwinch-handling-cleanup.patch added to -mm tree Blaisorblade
2006-01-05 22:27   ` Jeff Dike [this message]
2006-01-12 11:52     ` Blaisorblade

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=20060105222737.GA10369@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=akpm@osdl.org \
    --cc=blaisorblade@yahoo.it \
    --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