diff options
author | 2024-08-12 15:20:42 +0200 | |
---|---|---|
committer | 2024-09-06 08:31:40 -0600 | |
commit | 296dbc72d29085d5fc34430d0760423071e9e81d (patch) | |
tree | 16ad23f771b23beda1874c6527b06fda165a80ec /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | nbd: nbd_bg_flags_show: add NBD_FLAG_ROTATIONAL (diff) | |
download | wireguard-linux-296dbc72d29085d5fc34430d0760423071e9e81d.tar.xz wireguard-linux-296dbc72d29085d5fc34430d0760423071e9e81d.zip |
nbd: correct the maximum value for discard sectors
The version of the NBD protocol implemented by the kernel driver
currently has a 32 bit field for length values. As the NBD protocol uses
bytes as a unit of length, length values larger than 2^32 bytes cannot
be expressed.
Update the max_hw_discard_sectors field to match that.
Signed-off-by: Wouter Verhelst <w@uter.be>
Fixes: 268283244c0f ("nbd: use the atomic queue limits API in nbd_set_size")
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Cc: Eric Blake <eblake@redhat.Com>
Link: https://lore.kernel.org/r/20240812133032.115134-8-w@uter.be
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions