From: Evgeniy Polyakov <zbr@ioremap.net>
To: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Cc: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] DRBD on container, lxc
Date: Tue, 22 Mar 2011 01:21:23 +0300 [thread overview]
Message-ID: <20110321222122.GA12237@ioremap.net> (raw)
In-Reply-To: <87vczcd5g0.wl%chamas@h4.dion.ne.jp>
Hi.
On Mon, Mar 21, 2011 at 09:27:27PM +0900, Ken-ichirou MATSUZAWA (chamas@h4.dion.ne.jp) wrote:
> I had tried using mutex at first but it was failed on
> Documentation/connector/cn_test which call cn_netlink_send() from
> timer, softirq. Conseqently I use rcu lock but I did not know which
> is not permmited for GFP_KERNEL allocation.
>
> I was thinking of lock issue and occured non-broadcating, spcifying
> netns on calling cn_netlink_send(), appended.
>
> But it will not work with multiple container in this way, I am
> having thought what to do... copy list locally in the function?
> Then, I have got mail
AFAICS we should only send messages directly to the namespace, which
originally hosted aplication which requested given event.
If there are multiple clients in different namespaces who bound to the
same event, then there will be multiple sockets each of which lives in
own namespace and this information is stored in the socket structure,
which you duplicated in cn_init
--
Evgeniy Polyakov
next prev parent reply other threads:[~2011-03-23 10:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-21 1:10 [Drbd-dev] DRBD on container, lxc Ken-ichirou MATSUZAWA
2011-03-21 5:27 ` Evgeniy Polyakov
2011-03-21 12:27 ` Ken-ichirou MATSUZAWA
2011-03-21 22:21 ` Evgeniy Polyakov [this message]
2011-03-21 8:56 ` Lars Ellenberg
2011-03-21 12:40 ` Ken-ichirou MATSUZAWA
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=20110321222122.GA12237@ioremap.net \
--to=zbr@ioremap.net \
--cc=chamas@h4.dion.ne.jp \
--cc=drbd-dev@lists.linbit.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