All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mitchell Blank Jr <mitch@sfgoth.com>
To: "David S. Miller" <davem@redhat.com>
Cc: chas@locutus.cmf.nrl.navy.mil, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][2.5] convert atm_dev_lock from spinlock to semaphore
Date: Wed, 19 Feb 2003 10:33:06 -0800	[thread overview]
Message-ID: <20030219103305.G37577@sfgoth.com> (raw)
In-Reply-To: <20030218.205325.14347725.davem@redhat.com>; from davem@redhat.com on Tue, Feb 18, 2003 at 08:53:25PM -0800

David S. Miller wrote:
>    From: chas williams <chas@locutus.cmf.nrl.navy.mil>
>    Date: Wed, 19 Feb 2003 00:01:01 -0500
>    
>    we (meaning some folks here at nrl) already maintain a seperate 
>    kernel with atm 'enhancements' locally.  we are very interested in keeping
>    linux-atm alive (particularly in the linux kernel) and extending it
>    as well.  i would take the role of maintainer for atm if no one truly
>    wants it.
>    
> This is the situation.
> 
> Therefore, please send me a patch to add an appropriate entry
> to linux/MAINTAINERS.

Yes, Chas and I have already been discussing moving the maintainership.
Previously his work has been concentrated on 2.4 but now he's porting
his updates to 2.5 and will be taking over maintenence of the kernel stuff.

As for the locking issues a semaphore is probably the best thing to use
at the moment.  The *correct* fix would be to have atm_dev's and atm_vcc's
be reference counted instead so the card's interrupt handlers can safely
work with them.  This has been well understood for awhile and I was planning
on implementing it about a year ago for 2.5 but I've had basically zero time
to devote to linux-atm these days (sorry)  Maybe Chas or I or someone will
do it for 2.7.  The bad part isn't the atm core code (I could probably do
that myself in a day) but it would require overhaul of a lot of the ATM
drivers.  Some of the drivers are pretty scary.

(Side note: basically linux-atm was originally written before SMP support
existed and made heavy use of cti/sti to make sure the dev's and vcc's
didn't change underneath the drivers.  Later these became largely spinlocks
but they never really became SMP safe - even though the core code would
have proper SMP-exclusion we could have the card doing rx an atm_vcc
on one CPU while another was closing it.

There's some stream-of-consiousness comments about this that I wrote a
long time ago in drivers/atm/lanai.c around line 616.  They're not 100%
correct - I was planning on researching the issue more before submitting
that driver for inclusion into the tree but it lanai.c eventually got
submitted by someone else without asking me first)

-Mitch

  reply	other threads:[~2003-02-19 18:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-19  2:53 [PATCH][2.5] convert atm_dev_lock from spinlock to semaphore Matthew Wilcox
2003-02-19  4:47 ` David S. Miller
2003-02-19  5:01   ` chas williams
2003-02-19  4:53     ` David S. Miller
2003-02-19 18:33       ` Mitchell Blank Jr [this message]
2003-02-19 21:19         ` Mr. James W. Laferriere
2003-02-19  4:52 ` chas williams
2003-02-19 14:30   ` Matthew Wilcox
  -- strict thread matches above, loose matches on Subject: below --
2003-02-18 21:26 chas williams

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=20030219103305.G37577@sfgoth.com \
    --to=mitch@sfgoth.com \
    --cc=chas@locutus.cmf.nrl.navy.mil \
    --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 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.