public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: "David S. Miller" <davem@redhat.com>
Cc: linux-kernel@vger.kernel.org, acme@conectiva.com.br
Subject: Re: [PATCH] cli/sti in net/802/*
Date: Tue, 23 Jul 2002 12:29:29 +0200	[thread overview]
Message-ID: <BB58C644265@vcnet.vc.cvut.cz> (raw)

On 22 Jul 02 at 19:07, David S. Miller wrote:
> 
> These patches don't make any sense.
> 
> You aren't blocking against other things that cli/sti used
> to disable, namely timers and the generic input packet processing
> engine.
> 
> There is no way these changes are a correct replacement for cli/sti.
> This goes for your IPX changes too which I ask that you had pass
> through Arnaldo de Melo in the future as he has done a lot of work
> in this area.

Why? I'm definitely sure that IPX patches are correct: only
place which accesses spx_family_ops variable is ipx_create. 

If we have SPX sockets created when we call ipx_unregister_spx, we
have much worse problem, because of regardless of any cli/sti, we are
going to release af_spx memory very soon, and cli does not force us to
close all SPX sockets, does it?

As for p8022/psnap changes, yes, I missed datalink_header locking.
But because of IPX uses dl->datalink_header() happilly from process
context without any locking, I thought that users of proto structure
returned from register_* are responsible for making sure that they'll
not use it anymore when they call unregister_*. Adding (any) lock 
into *_datalink_header will not help unless you will call find_*_client 
in *_datalink_header after obtaining lock to revalidate pointer you 
received from caller. Which is obviously wrong, I'd say. And ipx
requires you to down all interfaces/close all sockets before it will 
call unregister_*_client, so IPX is safe here (at least as it was always;
if kernel can send packets to downed interface, it is completely another
problem).

Thanks for explanation,
                                                Petr Vandrovec
                                                vandrove@vc.cvut.cz
                                                

             reply	other threads:[~2002-07-23 10:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-23 10:29 Petr Vandrovec [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-07-22 19:48 [PATCH] cli/sti in net/802/* Petr Vandrovec
2002-07-22 19:59 ` Petr Vandrovec
2002-07-23  2:07 ` David S. Miller

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=BB58C644265@vcnet.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --cc=acme@conectiva.com.br \
    --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