diff options
author | Robert Altnoeder <robert.altnoeder@linbit.com> | 2023-01-13 15:35:32 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-01-30 01:18:33 +0300 |
commit | 2167879655b3a9a0a970d50b202e45f7fc45d092 (patch) | |
tree | c8f927adbac5d85a5a79c8791dfb47dda60b1f87 /tools/perf/scripts/python/sched-migration.py | |
parent | 37800068673220326fcdf7f40ccf05ca54854585 (diff) | |
download | linux-2167879655b3a9a0a970d50b202e45f7fc45d092.tar.xz |
drbd: fix DRBD_VOLUME_MAX 65535 -> 65534
The protocol uses -1 as a reserved value for
'no specific volume', and since the protocol field
is a 16 bit unsigned value, -1 is converted to
65535. Therefore, limit the range of valid volume
numbers to [0, 65534].
Signed-off-by: Robert Altnoeder <robert.altnoeder@linbit.com>
Signed-off-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Reviewed-by: Joel Colledge <joel.colledge@linbit.com>
Link: https://lore.kernel.org/r/20230113123538.144276-3-christoph.boehmwalder@linbit.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions