mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: James Morris <jmorris@intercode.com.au>
To: Matthew Wilcox <willy@debian.org>
Cc: "David S. Miller" <davem@redhat.com>, <kuznet@ms2.inr.ac.ru>,
	Andi Kleen <ak@muc.de>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH][RFC] sigurg/sigio cleanup for 2.5.31
Date: Fri, 16 Aug 2002 10:10:18 +1000 (EST)	[thread overview]
Message-ID: <Mutt.LNX.4.44.0208161004310.30494-100000@blackbird.intercode.com.au> (raw)
In-Reply-To: <20020815200436.E29958@parcelfarce.linux.theplanet.co.uk>

On Thu, 15 Aug 2002, Matthew Wilcox wrote:

> In general, this is good... I think it could be better:
> 
> > +	lock_kernel();
> > +	error = f_setown(filp, current->pid);
> > +	unlock_kernel();
> 
> There are a lot of these, and you even batch it up as sock_setown()
> later.  May I suggest renaming f_setown to __setown and sock_setown
> to f_setown?

Sounds like a good idea.

> this one's particularly silly -- now you've done the good job of wrapping
> the security_ops up inside f_setown this can simply be:
> 
> 			lock_kernel();
> 			err = f_setown(filp, arg);
> 			unlock_kernel();
> 			break;

Yep.

> Might make more sense to refactor as:
> 
> void sk_send_sigurg(struct sock *sk)
> {
> 	if (!sk->socket || !sk->socket->file)
> 		return;
> 	if (send_sigurg(&sk->socket->file->f_owner))
> 		sk_wake_async(sk, 3, POLL_PRI);
> }
> 

Possibly.  I guess it's up to the networking guys -- is there any point in 
keeping these separate?  I can't see any with the current code.

Thanks for the feedback.


- James
-- 
James Morris
<jmorris@intercode.com.au>



  reply	other threads:[~2002-08-16  0:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-15 17:16 James Morris
2002-08-15 19:04 ` Matthew Wilcox
2002-08-16  0:10   ` James Morris [this message]
2002-08-15 22:36 ` kuznet
2002-08-16 13:07   ` James Morris
2002-08-16 14:50     ` kuznet
2002-08-16 15:03       ` James Morris
2002-08-16 15:16         ` kuznet
2002-08-16  7:06 ` Chris Wright
2002-08-16 16:25 ` Jeff Dike
2002-08-16 15:59   ` James Morris
2002-08-17 18:16     ` Alan Cox
2002-08-18  0:57       ` James Morris
2002-08-19  1:16         ` James Morris
2002-08-17  2:58 ` [PATCH][RFC] sigurg/sigio cleanup for 2.5.31 [version 2] James Morris
2002-08-19  2:28   ` Jeff Dike
2002-08-19  1:37     ` James Morris
2002-08-19 10:14   ` [PATCH][RFC] sigurg/sigio cleanup for 2.5.31 [version 3] James Morris

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=Mutt.LNX.4.44.0208161004310.30494-100000@blackbird.intercode.com.au \
    --to=jmorris@intercode.com.au \
    --cc=ak@muc.de \
    --cc=davem@redhat.com \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=willy@debian.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

all inboxes | Powered by JetHome®