[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 04/11] block: make before-write notifiers thread
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 04/11] block: make before-write notifiers thread-safe |
Date: |
Mon, 10 Jul 2017 16:50:34 +0100 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
On Thu, Jul 06, 2017 at 06:38:21PM +0200, Paolo Bonzini wrote:
> Reads access the list in RCU style, so be careful to avoid use-after-free
> scenarios in the backup block job. Apart from this, all that's needed
> is protecting updates with a mutex.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> block/backup.c | 17 +++++++++++++----
> block/io.c | 12 ++++++++++++
> block/write-threshold.c | 2 +-
> include/block/block_int.h | 16 ++++++++++++++++
> 4 files changed, 42 insertions(+), 5 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
- [Qemu-devel] [RFC PATCH 00/11] Block layer thread-safety, next part, Paolo Bonzini, 2017/07/06
- [Qemu-devel] [PATCH 04/11] block: make before-write notifiers thread-safe, Paolo Bonzini, 2017/07/06
- Re: [Qemu-devel] [PATCH 04/11] block: make before-write notifiers thread-safe,
Stefan Hajnoczi <=
- [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
[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