diff options
| author | Xiao Ni <xni@redhat.com> | 2026-01-27 15:39:27 +0800 |
|---|---|---|
| committer | Yu Kuai <yukuai@fnnas.com> | 2026-02-02 15:39:55 +0800 |
| commit | 05c8de4f09b08e97c6ecb190dcec0e68b167cb03 (patch) | |
| tree | 514247733ebfb58eb61369fb6aef829be4593a6a /tools/perf/scripts/python | |
| parent | 6abc7d5dcf0ee0f85e16e41c87fbd06231f28753 (diff) | |
| download | linux-05c8de4f09b08e97c6ecb190dcec0e68b167cb03.tar.gz linux-05c8de4f09b08e97c6ecb190dcec0e68b167cb03.zip | |
md: fix return value of mddev_trylock
A return value of 0 is treaded as successful lock acquisition. In fact, a
return value of 1 means getting the lock successfully.
Link: https://lore.kernel.org/linux-raid/20260127073951.17248-1-xni@redhat.com
Fixes: 9e59d609763f ("md: call del_gendisk in control path")
Reported-by: Bart Van Assche <bvanassche@acm.org>
Closes: https://lore.kernel.org/linux-raid/20250611073108.25463-1-xni@redhat.com/T/#mfa369ef5faa4aa58e13e6d9fdb88aecd862b8f2f
Signed-off-by: Xiao Ni <xni@redhat.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Li Nan <linan122@huawei.com>
Signed-off-by: Yu Kuai <yukuai@fnnas.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
