From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: James Nelson <james4765@verizon.net>
Cc: kernel-janitors@lists.osdl.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
akpm@osdl.org
Subject: [KJ] Re: [PATCH] pcxx: replace cli()/sti() with
Date: Mon, 20 Dec 2004 14:59:09 +0000 [thread overview]
Message-ID: <1103554747.30268.24.camel@localhost.localdomain> (raw)
In-Reply-To: <20041217223426.11143.44338.87156@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 310 bytes --]
On Gwe, 2004-12-17 at 22:34, James Nelson wrote:
> - save_flags(flags);
> - cli();
> + spin_lock_irqsave(&pcxx_lock, flags);
> del_timer_sync(&pcxx_timer);
Not safe if the lock is grabbed by the timer between the lock and the
irqsave as it will spin on another cpu and the timer delete will never
finish.
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
WARNING: multiple messages have this Message-ID (diff)
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: James Nelson <james4765@verizon.net>
Cc: kernel-janitors@lists.osdl.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
akpm@osdl.org
Subject: Re: [PATCH] pcxx: replace cli()/sti() with spin_lock_irqsave()/spin_unlock_irqrestore()
Date: Mon, 20 Dec 2004 14:59:09 +0000 [thread overview]
Message-ID: <1103554747.30268.24.camel@localhost.localdomain> (raw)
In-Reply-To: <20041217223426.11143.44338.87156@localhost.localdomain>
On Gwe, 2004-12-17 at 22:34, James Nelson wrote:
> - save_flags(flags);
> - cli();
> + spin_lock_irqsave(&pcxx_lock, flags);
> del_timer_sync(&pcxx_timer);
Not safe if the lock is grabbed by the timer between the lock and the
irqsave as it will spin on another cpu and the timer delete will never
finish.
next prev parent reply other threads:[~2004-12-20 14:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-17 22:34 [KJ] [PATCH] pcxx: replace cli()/sti() with James Nelson
2004-12-17 22:34 ` [PATCH] pcxx: replace cli()/sti() with spin_lock_irqsave()/spin_unlock_irqrestore() James Nelson
2004-12-20 14:59 ` Alan Cox [this message]
2004-12-20 14:59 ` Alan Cox
2004-12-20 17:27 ` [KJ] Re: [PATCH] pcxx: replace cli()/sti() with Matthew Wilcox
2004-12-20 17:27 ` [KJ] Re: [PATCH] pcxx: replace cli()/sti() with spin_lock_irqsave()/spin_unlock_irqrestore() Matthew Wilcox
2004-12-20 20:23 ` [KJ] Re: [PATCH] pcxx: replace cli()/sti() with Alan Cox
2004-12-20 20:23 ` [PATCH] pcxx: replace cli()/sti() with spin_lock_irqsave()/spin_unlock_irqrestore() Alan Cox
2004-12-20 21:51 ` [KJ] Re: [PATCH] pcxx: replace cli()/sti() Jim Nelson
2004-12-20 21:51 ` [PATCH] pcxx: replace cli()/sti() with spin_lock_irqsave()/spin_unlock_irqrestore() Jim Nelson
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=1103554747.30268.24.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=akpm@osdl.org \
--cc=james4765@verizon.net \
--cc=kernel-janitors@lists.osdl.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.