All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Thornber <thornber@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: device mapper v/s block device driver
Date: Fri, 10 May 2013 11:35:31 +0100	[thread overview]
Message-ID: <20130510103531.GG20880@debian> (raw)
In-Reply-To: <CAOb=_x+xHq06wCYpT0kSGN=u4LYqHw96wm4MC+xoXx-f2UvE1g@mail.gmail.com>

On Thu, May 09, 2013 at 04:27:05PM -0600, neha naik wrote:
>        Are there any advantages of using block device driver instead of
> device mapper (or vice versa)

device-mapper is a framework for implementing virtual devices.  dm
devices can stack on each other nicely.

If you're writing a driver for real hardware, write a plain block
device driver.  Otherwise I'd start by looking at dm.

You may find your virtual dev can be more efficiently implemented
outside the dm framework.  For instance dm-cache can only see one bio
at a time within dm, which is tedious.  But make sure you've proved to
yourself and the community that the performance benefit is significant
enough to warrant reimplementing things that dm provides for free
(like bio splitting).

- Joe

      reply	other threads:[~2013-05-10 10:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-09 22:27 device mapper v/s block device driver neha naik
2013-05-10 10:35 ` Joe Thornber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130510103531.GG20880@debian \
    --to=thornber@redhat.com \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.