linux/drivers/nvme/host
Matias Bjørling e11903f5df lightnvm: refactor device ops->get_bb_tbl()
The device ops->get_bb_tbl() takes a callback, that allows the caller
to use its own callback function to update its data structures in the
returning function.

This makes it difficult to send parameters to the callback, and usually
is circumvented by small private structures, that both carry the callers
state and any flags needed to fulfill the update.

Refactor ops->get_bb_tbl() to fill a data buffer with the status of the
blocks returned, and let the user call the callback function manually.
That will provide the necessary flags and data structures and simplify
the logic around ops->get_bb_tbl().

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
2016-05-06 12:51:10 -06:00
..
core.c nvme: fix nvme_ns_remove() deadlock 2016-05-02 09:16:13 -06:00
Kconfig NVMe: small typo in section BLK_DEV_NVME_SCSI of host/Kconfig 2016-04-26 08:31:50 -06:00
lightnvm.c lightnvm: refactor device ops->get_bb_tbl() 2016-05-06 12:51:10 -06:00
Makefile nvme: split pci module out of core module 2016-02-10 14:22:38 -07:00
nvme.h nvme: add helper nvme_cleanup_cmd() 2016-05-02 09:11:58 -06:00
pci.c NVMe: Fix reset/remove race 2016-05-03 14:00:29 -06:00
scsi.c nvme: move chardev and sysfs interface to common code 2015-12-01 10:59:40 -07:00