Paolo Bonzini f6d153f1bf rcu: optimize rcu_read_lock
rcu_read_lock cannot change rcu_gp_ongoing from true to false
(the previous value of p_rcu_reader->ctr is zero), hence
there is no need to check p_rcu_reader->waiting and wake up
a concurrent synchronize_rcu.

While at it mark the wakeup as unlikely in rcu_read_unlock.

Reviewed-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1450265542-4323-1-git-send-email-pbonzini@redhat.com>
2015-12-17 17:33:49 +01:00
..
2015-06-05 17:10:00 +02:00
2015-06-05 17:10:00 +02:00
2015-04-30 16:05:48 +03:00
2014-10-09 15:36:15 +02:00
2015-09-15 07:45:33 -07:00
2014-05-30 13:00:28 -06:00
2015-06-23 16:05:34 +01:00
2015-12-17 17:33:48 +01:00
2015-09-07 18:14:03 +02:00
2014-02-20 13:14:18 +01:00
2015-09-25 12:04:45 +02:00
2015-10-16 15:34:30 +02:00
2014-06-19 18:44:19 +03:00
2015-02-16 17:30:19 +01:00
2015-12-17 17:33:49 +01:00
2014-02-01 13:46:06 +04:00
2014-03-13 14:42:21 +01:00
2013-10-17 17:30:55 +02:00
2015-02-02 16:55:10 +01:00