linux/drivers/lightnvm
Javier González cd8ddbf7a5 lightnvm: pblk: free padded entries in write buffer
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>
2017-10-13 08:34:57 -06:00
..
core.c lightnvm: remove already calculated nr_chnls 2017-10-13 08:34:57 -06:00
Kconfig lightnvm: include NVM Express driver if OCSSD is selected for build 2017-10-13 08:34:57 -06:00
Makefile lightnvm: physical block device (pblk) target 2017-04-16 10:06:33 -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 2017-10-13 08:34:57 -06:00
pblk-gc.c lightnvm: pblk: use vmalloc for GC data buffer 2017-06-30 11:08:18 -06:00
pblk-init.c lightnvm: pblk: initialize debug stat counter 2017-10-13 08:34:57 -06:00
pblk-map.c lightnvm: pblk: fix bad le64 assignations 2017-06-30 11:08:18 -06:00
pblk-rb.c lightnvm: pblk: advance bio according to lba index 2017-07-28 08:06:00 -06:00
pblk-read.c lightnvm: pblk: use right flag for GC allocation 2017-10-13 08:34:57 -06:00
pblk-recovery.c lightnvm: pblk: print incompatible line version correctly 2017-10-13 08:34:57 -06:00
pblk-rl.c lightnvm: pblk: reuse pblk_gc_should_kick 2017-10-13 08:34:57 -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 2017-10-13 08:34:57 -06:00
pblk.h lightnvm: pblk: reuse pblk_gc_should_kick 2017-10-13 08:34:57 -06: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