public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Question on vhost_has_feature()
@ 2014-03-03 19:44 Paul E. McKenney
  2014-03-04  7:56 ` Michael S. Tsirkin
  0 siblings, 1 reply; 4+ messages in thread
From: Paul E. McKenney @ 2014-03-03 19:44 UTC (permalink / raw)
  To: mst; +Cc: linux-kernel

Hello, Michael,

Just curious about the purpose of the rcu_dereference_index_check() in
vhost_has_feature().  I don't see how it fits in.  The closest thing
I see if the use in handle_rx(), where it selects vq->log or NULL.  But
in that case, I would expect the usual RCU usage pattern to wrap an
rcu_dereference() around the vq->log.

Enlightenment?

							Thanx, Paul


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-05 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 19:44 Question on vhost_has_feature() Paul E. McKenney
2014-03-04  7:56 ` Michael S. Tsirkin
2014-03-05  1:01   ` Paul E. McKenney
2014-03-05 17:11     ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox