linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug: swap discard issue with zram caused by "block: don't deal with discard limit in blkdev_issue_discard()"
@ 2018-10-25 16:09 Rui Salvaterra
  2018-10-26  2:00 ` Ming Lei
  2018-10-26  6:27 ` Ming Lei
  0 siblings, 2 replies; 6+ messages in thread
From: Rui Salvaterra @ 2018-10-25 16:09 UTC (permalink / raw)
  To: ming.lei, axboe; +Cc: linux-block, linux-kernel

Hi,

After commit 744889b7cbb56a64f957e65ade7cb65fe3f35714, I started
getting this (-EIO, it seems) on my dmesg:

swapon: discard_swap(00000000c275f02d): -5

This is an 8 GB zram swap device. It's configured like this:

modprobe zram
echo zstd > /sys/block/zram0/comp_algorithm
echo 8297508864 > /sys/block/zram0/disksize
mkswap /dev/zram0
swapon -d -p 100 /dev/zram0

I should note that if I use --discard=pages instead of -d (both
policies) at swapon, I don't get this error.
Reverting the commit from v4.19 final fixes the error for me, but
surely breaks something else. :)
Let me know if you need any additional information.

Thanks,

Rui

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-10-28  8:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-25 16:09 Bug: swap discard issue with zram caused by "block: don't deal with discard limit in blkdev_issue_discard()" Rui Salvaterra
2018-10-26  2:00 ` Ming Lei
2018-10-26  6:27 ` Ming Lei
2018-10-26  7:50   ` Rui Salvaterra
2018-10-28  1:01     ` Ming Lei
2018-10-28  8:53       ` Rui Salvaterra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).