Re: [PATCH] null_blk: Register as a LightNVM device

From: Jens Axboe
Date: Thu Nov 12 2015 - 10:49:16 EST

On 11/12/2015 01:53 AM, Christoph Hellwig wrote:
On Wed, Nov 11, 2015 at 11:06:38AM +0100, Matias Bj??rling wrote:
Add support for registering as a LightNVM device. This allows us to
evaluate the performance of the LightNVM library.

In /drivers/Makefile, LightNVM is moved above block device drivers
to make sure that the LightNVM media managers have been initialized
before drivers under /drivers/block are initialized.

I don't think mixing the lighnvm code into null_blk is a good idea.
Please just create a separate null_nvm device for lighnvm. It already
has a completely separate I/O path.

But it still avoids duplicating the generics of it. Patch for null_blk:

3 files changed, 168 insertions(+), 7 deletions (-)

vs a standalone of:

3 files changed, 459 insertions(+)

It doesn't screw up null_blk, so I'd prefer just adding it as an on-the-side mode for that.

Jens Axboe

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at