netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Yusupov <dmitry_yus@yahoo.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Mike Christie <michaelc@cs.wisc.edu>,
	netdev@oss.sgi.com, davem@davemloft.net
Subject: Re: [PATCH] NETLINK_UESTABLISHED notifier event
Date: Fri, 08 Apr 2005 08:30:14 -0700	[thread overview]
Message-ID: <1112974214.17165.8.camel@mylaptop> (raw)
In-Reply-To: <20050408113654.GA26095@gondor.apana.org.au>

On Fri, 2005-04-08 at 21:36 +1000, Herbert Xu wrote:
> On Thu, Apr 07, 2005 at 04:36:41PM -0700, Dmitry Yusupov wrote:
> > 
> > This actually even better since we will guarantee "down" call delivery.
> > My only concern is that it is not very generic. Do you know clean way to
> > implement it?
> 
> How generic do you want this? Do you need this for socket types other
> than netlink?

as discussed on kernel-summit-discuss. yes. we need generic OOM-safety
solution.

> For a one-packet version, we can pre-allocate an skb/page in response to
> a setsockopt and store it in sk_send_head/sk_sndmsg_page.
> 
> This can then be used at sendmsg time.  Obviously subsequent messages
> will have to use alloc_skb until that skb is released.
> 
> Alternatively, we can let the socket allocate skb's from an emergency
> pool similar to what was discussed in the thread
> "Summary of 2005 Kernel Summit Proposed Topics".

This is ideally how it should be for sendmsg paths. socket applications
like iscsi, nbd, etc will use it for TCP/IP type of socket. iscsi could
re-use the same generic "emergency pool" code for netlink.

> Again this could enabled on a setsockopt.

perfect.

> Cheers,

  reply	other threads:[~2005-04-08 15:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-05 19:54 [PATCH] NETLINK_UESTABLISHED notifier event Dmitry Yusupov
2005-04-05 21:39 ` Jean-Mickael Guerin
2005-04-05 23:53   ` Dmitry Yusupov
2005-04-06  0:13   ` Dmitry Yusupov
2005-04-06  2:45 ` Herbert Xu
2005-04-06  5:55   ` Dmitry Yusupov
2005-04-06  6:03     ` Herbert Xu
2005-04-06 15:16       ` Dmitry Yusupov
2005-04-06 16:23   ` Mike Christie
2005-04-06 21:29     ` Herbert Xu
2005-04-06 21:37       ` Dmitry Yusupov
2005-04-06 22:04         ` Herbert Xu
2005-04-06 22:26           ` Dmitry Yusupov
2005-04-07 11:30             ` jamal
2005-04-07 15:05               ` Dmitry Yusupov
2005-04-07 21:32             ` Herbert Xu
2005-04-07 23:36               ` Dmitry Yusupov
2005-04-08 11:36                 ` Herbert Xu
2005-04-08 15:30                   ` Dmitry Yusupov [this message]
2005-04-09  1:44                     ` Herbert Xu
2005-04-09 16:02                       ` Dmitry Yusupov
2005-04-09 19:36                         ` Herbert Xu

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=1112974214.17165.8.camel@mylaptop \
    --to=dmitry_yus@yahoo.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=michaelc@cs.wisc.edu \
    --cc=netdev@oss.sgi.com \
    /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;
as well as URLs for NNTP newsgroup(s).