From: Dan Carpenter <dan.carpenter@oracle.com>
To: jianhai luan <jianhai.luan@oracle.com>
Cc: gmarsden_org_ww@oracle.com, LINUX-UEK_WW@oracle.com,
xen-devel@lists.xensource.com
Subject: Re: [PATCH 4/4] review For Oracle bug 14470382
Date: Fri, 18 Jan 2013 09:45:03 +0300 [thread overview]
Message-ID: <20130118064503.GJ16282@mwanda> (raw)
In-Reply-To: <50F8AC1C.3060300@oracle.com>
On Fri, Jan 18, 2013 at 09:57:48AM +0800, jianhai luan wrote:
> +/**
> + * By Connected->Connected transition, netfront will watch the change and
> + * send gratuitous ARP.
> + */
> +static void notify_front_arping(struct xenbus_device *dev)
> +{
> + struct xenbus_transaction xbt;
> + int err;
> +
> + if (xenbus_read_driver_state(dev->nodename) != XenbusStateConnected)
> + return;
> +
> +again:
> + err = xenbus_transaction_start(&xbt);
> + if (err) {
> + printk(KERN_ALERT "Error starting transaction");
> + return;
> + }
> +
> + err = xenbus_printf(xbt, dev->nodename, "state", "%d", dev->state);
> + if(err) {
> + printk(KERN_ALERT "Error writing the state");
> + xenbus_transaction_end(xbt, 1);
> + return;
> + }
> +
> + err = xenbus_transaction_end(xbt, 0);
> + if (err == -EAGAIN)
> + goto again;
Why would we get a -EAGAIN here? My reading says that it would have
to come as the msg->body from the XenServer. I would be tempted to
just ignore those errors.
(I don't know anything about Xen though, so I'm probably full of
crap).
regards,
dan carpenter
next prev parent reply other threads:[~2013-01-18 6:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 1:46 review For Oracle bug 14470382 jianhai luan
2013-01-18 1:50 ` [PATCH 1/4]review " jianhai luan
2013-01-18 1:52 ` [PATCH 2/4] review " jianhai luan
2013-01-18 1:54 ` [PATCH 3/4] " jianhai luan
2013-01-18 1:57 ` [PATCH 4/4] " jianhai luan
2013-01-18 6:45 ` Dan Carpenter [this message]
2013-01-18 10:08 ` Ian Campbell
2013-01-18 10:26 ` Jan Beulich
2013-01-19 5:25 ` Jason Luan
2013-01-18 2:03 ` [Test Result] " jianhai luan
2013-01-18 2:38 ` jianhai luan
2013-01-18 2:44 ` jianhai luan
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=20130118064503.GJ16282@mwanda \
--to=dan.carpenter@oracle.com \
--cc=LINUX-UEK_WW@oracle.com \
--cc=gmarsden_org_ww@oracle.com \
--cc=jianhai.luan@oracle.com \
--cc=xen-devel@lists.xensource.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).