linux-stable/drivers/lightnvm
Javier González 9205e44916 pblk: fix max_io calculation
When calculating the maximun I/O size allowed into the buffer, consider
the write size (ws_opt) used by the write thread in order to cover the
case in which, due to flushes, the mem and subm pointers are disaligned
by (ws_opt - 1). This case currently translates into a stall when
an I/O of the largest possible size is submitted.

Fixes: f9f9d1ae2c66 ("lightnvm: pblk: prevent stall due to wb threshold")

Signed-off-by: Javier González <javier@javigon.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-03-07 08:59:26 -07:00
..
core.c lightnvm: dynamic DMA pool entry size 2018-12-11 12:22:35 -07:00
Kconfig lightnvm: remove dependencies on BLK_DEV_NVME and PCI 2018-10-09 08:25:05 -06:00
Makefile lightnvm: remove rrpc 2018-01-05 08:50:12 -07:00
pblk-cache.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-core.c lightnvm: pblk: fix race condition on GC 2019-02-11 08:18:08 -07:00
pblk-gc.c lightnvm: pblk: fix race condition on GC 2019-02-11 08:18:08 -07:00
pblk-init.c lightnvm: pblk: Switch to use new generic UUID API 2019-02-11 08:18:07 -07:00
pblk-map.c lightnvm: pblk: fix race condition on GC 2019-02-11 08:18:08 -07:00
pblk-rb.c lightnvm: pblk: fix race condition on GC 2019-02-11 08:18:08 -07:00
pblk-read.c lightnvm: pblk: support packed metadata 2018-12-11 12:22:35 -07:00
pblk-recovery.c lightnvm: pblk: extend line wp balance check 2019-02-11 08:18:07 -07:00
pblk-rl.c pblk: fix max_io calculation 2019-03-07 08:59:26 -07:00
pblk-sysfs.c lightnvm: pblk: support packed metadata 2018-12-11 12:22:35 -07:00
pblk-trace.h lightnvm: pblk: fix TRACE_INCLUDE_PATH 2019-02-11 08:18:07 -07:00
pblk-write.c lightnvm: pblk: fix race condition on GC 2019-02-11 08:18:08 -07:00
pblk.h lightnvm: pblk: fix race condition on GC 2019-02-11 08:18:08 -07:00