diff options
author | Kristian Klausen <kristian@klausen.dk> | 2021-06-18 14:51:57 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-18 17:52:37 +0300 |
commit | 2b9ac22b12a266eb4fec246a07b504dd4983b16b (patch) | |
tree | 5270a0e577ef4253faa0c986af3dea48f56e500f /drivers/nvme/host/pci.c | |
parent | e0d245e2230998e66dfda10fb8c413f29196eb1c (diff) | |
download | linux-2b9ac22b12a266eb4fec246a07b504dd4983b16b.tar.xz |
loop: Fix missing discard support when using LOOP_CONFIGURE
Without calling loop_config_discard() the discard flag and parameters
aren't set/updated for the loop device and worst-case they could
indicate discard support when it isn't the case (ex: if the
LOOP_SET_STATUS ioctl was used with a different file prior to
LOOP_CONFIGURE).
Cc: <stable@vger.kernel.org> # 5.8.x-
Fixes: 3448914e8cc5 ("loop: Add LOOP_CONFIGURE ioctl")
Signed-off-by: Kristian Klausen <kristian@klausen.dk>
Link: https://lore.kernel.org/r/20210618115157.31452-1-kristian@klausen.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host/pci.c')
0 files changed, 0 insertions, 0 deletions