1
0
Fork 0
remarkable-linux/drivers/lightnvm
Javier González 1508043c32 lightnvm: pblk: free padded entries in write buffer
commit cd8ddbf7a5 upstream.

When a REQ_FLUSH reaches pblk, the bio cannot be directly completed.
Instead, data on the write buffer is flushed and the bio is completed on
the completion pah. This might require some sectors to be padded in
order to guarantee a successful write.

This patch fixes a memory leak on the padded pages. A consequence of
this bad free was that internal bios not containing data (only a flush)
were not being completed.

Fixes: a4bd217b43 ("lightnvm: physical block device (pblk) target")
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-15 09:45:35 +02:00
..
Kconfig lightnvm: physical block device (pblk) target 2017-04-16 10:06:33 -06:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
core.c lightnvm: if LUNs are already allocated fix return 2017-06-27 08:22:09 -06:00
pblk-cache.c lightnvm: pblk: fail gracefully on irrec. error 2017-06-26 16:27:39 -06:00
pblk-core.c lightnvm: pblk: free padded entries in write buffer 2018-09-15 09:45:35 +02:00
pblk-gc.c lightnvm: pblk: prevent gc kicks when gc is not operational 2017-12-20 10:10:37 +01:00
pblk-init.c lightnvm: pblk: fix min size for page mempool 2017-12-20 10:10:37 +01:00
pblk-map.c lightnvm: pblk: fix bad le64 assignations 2017-06-30 11:08:18 -06:00
pblk-rb.c lightnvm: pblk: warn in case of corrupted write buffer 2018-08-03 07:50:25 +02:00
pblk-read.c lightnvm: pblk: fix min size for page mempool 2017-12-20 10:10:37 +01:00
pblk-recovery.c lightnvm: pblk: control I/O flow also on tear down 2017-07-07 13:17:34 -06:00
pblk-rl.c lightnvm: pblk: fail gracefully on irrec. error 2017-06-26 16:27:39 -06:00
pblk-sysfs.c lightnvm: pblk: remove unused return variable 2017-06-30 11:08:18 -06:00
pblk-write.c lightnvm: pblk: free padded entries in write buffer 2018-09-15 09:45:35 +02:00
pblk.h lightnvm: pblk: fix min size for page mempool 2017-12-20 10:10:37 +01:00
rrpc.c blk: remove bio_set arg from blk_queue_split() 2017-06-18 12:40:59 -06:00
rrpc.h lightnvm: use end_io callback instead of instance 2017-01-31 08:32:13 -07:00