summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-12-27 11:20:20 +0300
committerJens Axboe <axboe@kernel.dk>2023-12-27 20:43:46 +0300
commit34c7db44b4edccda315edcf02b9669aa173e090b (patch)
treeda6ca4e56749faada0c76adae8f6dd0a24ca25f2 /drivers/block
parent5d13243820c457edf54a1fd848141ce7eb092671 (diff)
downloadlinux-34c7db44b4edccda315edcf02b9669aa173e090b.tar.xz
loop: don't update discard limits from loop_set_status
loop_set_status doesn't change anything relevant to the discard and write_zeroes setting, so don't bother calling loop_config_discard. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20231227082020.249427-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/loop.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 9f2d412fc560..23bc8b0fc23c 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1303,8 +1303,6 @@ loop_set_status(struct loop_device *lo, const struct loop_info64 *info)
loop_set_size(lo, new_size);
}
- loop_config_discard(lo);
-
/* update dio if lo_offset or transfer is changed */
__loop_update_dio(lo, lo->use_dio);