linux/drivers/block
Minchan Kim 2306580a95 zram: fix return value on writeback_store
commit 57e0076e6575a7b7cef620a0bd2ee2549ef77818 upstream.

writeback_store's return value is overwritten by submit_bio_wait's return
value.  Thus, writeback_store will return zero since there was no IO
error.  In the end, write syscall from userspace will see the zero as
return value, which could make the process stall to keep trying the write
until it will succeed.

Link: https://lkml.kernel.org/r/20210312173949.2197662-1-minchan@kernel.org
Fixes: 3b82a051c101("drivers/block/zram/zram_drv.c: fix error return codes not being returned in writeback_store")
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: John Dias <joaodias@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-17 17:03:57 +01:00
..
aoe
drbd
mtip32xx
paride
rsxx block: rsxx: fix error return code of rsxx_pci_probe() 2021-03-17 17:03:56 +01:00
xen-blkback xen-blkback: fix error handling in xen_blkbk_map() 2021-02-23 15:02:26 +01:00
zram zram: fix return value on writeback_store 2021-03-17 17:03:57 +01:00
Kconfig block: rsxx: select CONFIG_CRC32 2021-01-17 14:05:36 +01:00
Makefile
amiflop.c
ataflop.c
brd.c
cryptoloop.c
floppy.c floppy: reintroduce O_NDELAY fix 2021-03-04 10:26:47 +01:00
loop.c
loop.h
nbd.c nbd: handle device refs for DESTROY_ON_DISCONNECT properly 2021-03-07 12:20:42 +01:00
null_blk.h
null_blk_main.c
null_blk_zoned.c null_blk: Fix zone size initialization 2021-01-06 14:48:37 +01:00
pktcdvd.c
ps3disk.c
ps3vram.c
rbd.c
rbd_types.h
skd_main.c
skd_s1120.h
sunvdc.c
swim.c
swim3.c
swim_asm.S
sx8.c
umem.c
umem.h
virtio_blk.c
xen-blkfront.c xen-blkfront: allow discard-* nodes to be optional 2021-02-03 23:25:58 +01:00
xsysace.c
z2ram.c