[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 3 Mar 2014 11:44:23 -0800
From: "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
To: mst@...hat.com
Cc: linux-kernel@...r.kernel.org
Subject: Question on vhost_has_feature()
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists