From: David Miller <davem@davemloft.net>
To: sfeldma@gmail.com
Cc: netdev@vger.kernel.org, jiri@resnulli.us,
simon.horman@netronome.com, makita.toshiaki@lab.ntt.co.jp
Subject: Re: [PATCH net-next v2] rocker: move netevent neigh update to processes context
Date: Wed, 03 Jun 2015 23:38:29 -0700 (PDT) [thread overview]
Message-ID: <20150603.233829.1362177764562847830.davem@davemloft.net> (raw)
In-Reply-To: <1433303008-32656-1-git-send-email-sfeldma@gmail.com>
From: sfeldma@gmail.com
Date: Tue, 2 Jun 2015 20:43:28 -0700
> From: Scott Feldman <sfeldma@gmail.com>
>
> v2:
>
> Changes based on review:
>
> - David Miller <davem@davemloft.net> raise problem with system_wq not
> preserving queue order to execution order. To fix, use driver-private
> ordered workqueue to preserve ordering of queued work.
>
> - Jiri Pirko <jiri@resnulli.us> small change on kfree of work queue item.
>
> v1:
>
> In review of Simon's patchset "rocker: transaction fixes". it was noted
> that rocker->neigh_tbl_next_index was unprotected in the call path below
> and could race with other contexts calling rocker_port_ipv4_neigh():
How it rocker->neigh_tbl_next_index not protected?
rocker->neigh_tbl_lock is _always_ held when it is accessed.
This patch, therefore, looks like completely unnecessary complexity
to me. Furthermore, I would completely prefer if the operation stays
completely synchronous to the call path where the neigh operation
occurs rather than throwing it out to a workqueue.
Thanks.
next prev parent reply other threads:[~2015-06-04 6:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-03 3:43 [PATCH net-next v2] rocker: move netevent neigh update to processes context sfeldma
2015-06-04 6:38 ` David Miller [this message]
2015-06-04 8:20 ` Simon Horman
2015-06-04 8:34 ` David Miller
2015-06-04 9:07 ` Simon Horman
2015-06-04 15:34 ` Toshiaki Makita
2015-06-04 18:48 ` David Miller
2015-06-04 16:12 ` Scott Feldman
2015-06-04 22:54 ` Simon Horman
2015-06-05 1:33 ` Scott Feldman
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=20150603.233829.1362177764562847830.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=jiri@resnulli.us \
--cc=makita.toshiaki@lab.ntt.co.jp \
--cc=netdev@vger.kernel.org \
--cc=sfeldma@gmail.com \
--cc=simon.horman@netronome.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).