lightnvm: pblk: expose max sec per write on sysfs
authorJavier González <jg@lightnvm.io>
Mon, 26 Jun 2017 09:57:14 +0000 (11:57 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2017 22:24:53 +0000 (16:24 -0600)
commitc2e9f5d457ad6a75516e749a3e544165766ab1ce
treec7d78f902aecf429b7b422fd0ba4d6b0c8807b9c
parentdb7ada33cdcae7fef0a088141b1e4ab8c25fd395
lightnvm: pblk: expose max sec per write on sysfs

Allow to configure the number of maximum sectors per write command
through sysfs. This makes it easier to tune write command sizes for
different controller configurations.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-init.c
drivers/lightnvm/pblk-sysfs.c
drivers/lightnvm/pblk.h