diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-12-16 12:32:22 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-12-17 17:33:49 +0100 |
commit | f6d153f1bfc7839555309c6e090c6f20c1ce3c0e (patch) | |
tree | 5599236dbba4c51850a0db71bfa818dbfdfd388f /iothread.c | |
parent | 3cc8f884996584630734a90c9b3c535af81e3c92 (diff) |
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>
Diffstat (limited to 'iothread.c')
0 files changed, 0 insertions, 0 deletions