On Tue, Nov 03, 2009 at 10:11:12PM +0100, Eric Dumazet wrote:
Well, what I do has classic RCU characteristics: readers do not take
locks, writers take a lock and flush after update. This is why I believe
rcu_dereference and rcu_assign_pointer are more appropriate here than
open-coding barriers.
Before deciding whether it's a good idea to open-code barriers
instead, I would like to hear Paul's opinion.
Yes, virtio guest pretty much forces this, there's no way to share
a lock with the guest.
Thanks very much for spotting this! Will fix.
--
MST
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html