[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 0/4] Add full zoned storage emulation to qcow2 driver
From: |
Sam Li |
Subject: |
Re: [PATCH v6 0/4] Add full zoned storage emulation to qcow2 driver |
Date: |
Sun, 17 Dec 2023 02:22:26 +0100 |
Markus Armbruster <armbru@redhat.com> 于2023年11月30日周四 09:25写道:
>
> Clang reports
>
> ../block/qcow2.c:4066:5: error: mutex 'graph_lock' is not held on every path
> through here [-Werror,-Wthread-safety-analysis]
> blk_co_unref(blk);
> ^
> ../block/qcow2.c:3928:5: note: mutex acquired here
> bdrv_graph_co_rdlock();
> ^
> ../block/qcow2.c:4066:5: error: mutex 'graph_lock' is not held on every path
> through here [-Werror,-Wthread-safety-analysis]
> blk_co_unref(blk);
> ^
> ../block/qcow2.c:3928:5: note: mutex acquired here
> bdrv_graph_co_rdlock();
> ^
> 2 errors generated.
>
Turns out that my gcc 12.0 does not support -Wthread-safety-analysis
flag. Need to use --cc=clang to reproduce it. Thanks!
Sam
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v6 0/4] Add full zoned storage emulation to qcow2 driver,
Sam Li <=