|
From: | Hanna Czenczek |
Subject: | Re: [PATCH 2/3] block: make BlockBackend->disable_request_queuing atomic |
Date: | Fri, 3 Mar 2023 16:30:08 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
On 27.02.23 21:57, Stefan Hajnoczi wrote:
This field is accessed by multiple threads without a lock. Use explicit qatomic_read()/qatomic_set() calls. There is no need for acquire/release because blk_set_disable_request_queuing() doesn't provide any guarantees (it helps that it's used at BlockBackend creation time and not when there is I/O in flight). Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> --- block/block-backend.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
[Prev in Thread] | Current Thread | [Next in Thread] |