diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-29 06:38:44 -0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-03-01 09:08:22 -0700 |
commit | 7ea201f2cc1da999b9a0a23ea20b64eb2c4719a9 (patch) | |
tree | 6b2137c521cc4800578158d34cb040fda7cd7eb5 /scripts/gdb/linux/stackdepot.py | |
parent | eabf5dfc2d6048d8415cd22d38d7d3e0bdb4dff9 (diff) |
nbd: don't clear discard_sectors in nbd_config_put
nbd_config_put currently clears discard_sectors when unusing a device.
This is pretty odd behavior and different from the sector size
configuration which is simply left in places and then reconfigured when
nbd_set_size is as part of configuring the device. Change nbd_set_size
to clear discard_sectors if discard is not supported so that all the
queue limits changes are handled in one place.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240229143846.1047223-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions