Commit 2b31e86
drbd: Balance RCU calls in drbd_adm_dump_devices()
Make drbd_adm_dump_devices() call rcu_read_lock() before
rcu_read_unlock() is called. This has been detected by the Clang
thread-safety analyzer.
Tested-by: Christoph Böhmwalder <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Andreas Gruenbacher <[email protected]>
Fixes: a55bbd3 ("drbd: Backport the "status" command")
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent 630bbba commit 2b31e86
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3443 | 3443 | | |
3444 | 3444 | | |
3445 | 3445 | | |
3446 | | - | |
| 3446 | + | |
| 3447 | + | |
3447 | 3448 | | |
| 3449 | + | |
3448 | 3450 | | |
3449 | 3451 | | |
3450 | 3452 | | |
| |||
3693 | 3695 | | |
3694 | 3696 | | |
3695 | 3697 | | |
3696 | | - | |
| 3698 | + | |
| 3699 | + | |
3697 | 3700 | | |
| 3701 | + | |
3698 | 3702 | | |
3699 | 3703 | | |
3700 | 3704 | | |
| |||
0 commit comments