From: Sowmini Varadhan <sowmini.varadhan@oracle.com>
To: David Miller <davem@davemloft.net>
Cc: raghuram.kothakota@oracle.com, netdev@vger.kernel.org
Subject: Re: [PATCH net-next] sunvnet: Fixes to avoid soft lockup in sunvnet
Date: Mon, 11 Aug 2014 17:03:54 -0400 [thread overview]
Message-ID: <20140811210354.GB20351@oracle.com> (raw)
In-Reply-To: <20140811.135642.2149726326739266234.davem@davemloft.net>
On (08/11/14 13:56), David Miller wrote:
>
> Please don't fix multiple things in one huge patch, split up the
> changes into separate easily reviewed patches.
So there were 4 different sources of soft-lockup here, each of them
was just a few lines of change. Do you really want these as 4 patches?
I have no issues doing that (and also fixing the rest below)
but I just wanted to make sure that's really what's being asked for-
since it seems like a lot of small patches, for something that made
sense for me to test as one piece.
>
> > +/*
> > + * Heuristic for the number of times to exponentially backoff and
> > + * retry sending an LDC trigger when EAGAIN is encountered
> > + */
>
> In the networking, comments are formatted:
>
> /* Like
> * this.
> */
>
> > + printk(KERN_INFO
> > + "ECONNRESET %x:%x:%x:%x:%x:%x\n",
> > + port->raddr[0], port->raddr[1],
> > + port->raddr[2], port->raddr[3],
> > + port->raddr[4], port->raddr[5]);
>
> This is not indented correctly. The second and subsequent lines
> of the printk() function call should start at exactly the first
> column after the openning parenthesis of the function call.
>
> > + /*
> > + * Kick off a tasklet to wake the queue. We cannot call
> > + * maybe_tx_wakeup directly here because we could deadlock on
> > + * netif_tx_lock() with dev_watchdog()
> > + */
>
> Comment formatting.
>
> > + /*
> > + * We don't rely on the ACKs to free the skb in vnet_start_xmit(),
> > + * thus it is safe to not set VIO_ACK_ENABLE for each transmission:
> > + * the protocol itself does not require it as long as the peer
> > + * sends a VIO_SUBTYPE_ACK for VIO_DRING_STOPPED.
> > + *
> > + * An ACK for every packet in the ring is expensive as the
> > + * sending of LDC messages is slow and affects performance.
> > + */
>
> Likewise.
next prev parent reply other threads:[~2014-08-11 21:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-10 19:48 [PATCH net-next] sunvnet: Fixes to avoid soft lockup in sunvnet Sowmini Varadhan
2014-08-11 20:56 ` David Miller
2014-08-11 21:03 ` Sowmini Varadhan [this message]
2014-08-11 21:08 ` David 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=20140811210354.GB20351@oracle.com \
--to=sowmini.varadhan@oracle.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=raghuram.kothakota@oracle.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).