[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/11] util: use RCU accessors for notifiers
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 03/11] util: use RCU accessors for notifiers |
Date: |
Mon, 10 Jul 2017 16:52:06 +0100 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
On Thu, Jul 06, 2017 at 06:38:20PM +0200, Paolo Bonzini wrote:
> void notifier_list_notify(NotifierList *list, void *data)
> {
> Notifier *notifier, *next;
>
> - QLIST_FOREACH_SAFE(notifier, &list->notifiers, node, next) {
> + QLIST_FOREACH_SAFE_RCU(notifier, &list->notifiers, node, next) {
> notifier->notify(notifier, data);
> }
> }
Who calls rcu_read_lock() or is it unnecessary?
signature.asc
Description: PGP signature
- Re: [Qemu-devel] [PATCH 01/11] block: prepare write threshold code for thread safety, (continued)
- [Qemu-devel] [PATCH 04/11] block: make before-write notifiers thread-safe, Paolo Bonzini, 2017/07/06
- [Qemu-devel] [PATCH 02/11] block: make write-threshold thread-safe, Paolo Bonzini, 2017/07/06
- [Qemu-devel] [PATCH 03/11] util: use RCU accessors for notifiers, Paolo Bonzini, 2017/07/06
- Re: [Qemu-devel] [PATCH 03/11] util: use RCU accessors for notifiers,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 05/11] block-backup: add reqs_lock, Paolo Bonzini, 2017/07/06
- [Qemu-devel] [PATCH 08/11] block: drain I/O around key management, Paolo Bonzini, 2017/07/06
- [Qemu-devel] [PATCH 06/11] block: add a few more notes on locking, Paolo Bonzini, 2017/07/06
- [Qemu-devel] [PATCH 09/11] block/replication: do not acquire AioContext, Paolo Bonzini, 2017/07/06
- [Qemu-devel] [PATCH 07/11] block: do not acquire AioContext in check_to_replace_node, Paolo Bonzini, 2017/07/06