linux_dsm_epyc7002/drivers/block
Kristian Klausen a7e18f57ed loop: Fix missing discard support when using LOOP_CONFIGURE
commit 2b9ac22b12a266eb4fec246a07b504dd4983b16b upstream.

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: 3448914e8c ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-14 16:55:46 +02:00
..
aoe
drbd
mtip32xx
paride
rnbd block/rnbd-clt: Check the return value of the function rtrs_clt_query 2021-05-19 10:13:06 +02:00
rsxx
xen-blkback
zram
amiflop.c
ataflop.c
brd.c
cryptoloop.c
floppy.c
Kconfig
loop.c loop: Fix missing discard support when using LOOP_CONFIGURE 2021-07-14 16:55:46 +02:00
loop.h
Makefile
nbd.c nbd: Fix NULL pointer in flush_workqueue 2021-05-19 10:13:14 +02:00
null_blk_main.c
null_blk_trace.c
null_blk_trace.h
null_blk_zoned.c drivers/block/null_blk/main: Fix a double free in null_init. 2021-05-14 09:50:28 +02:00
null_blk.h
pktcdvd.c
ps3disk.c
ps3vram.c
rbd_types.h
rbd.c
skd_main.c
skd_s1120.h
sunvdc.c
swim3.c
swim_asm.S
swim.c
sx8.c
umem.c
umem.h
virtio_blk.c
xen-blkfront.c
xsysace.c
z2ram.c