linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@redhat.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Eric Sandeen <sandeen@redhat.com>,
	Andreas Sundstrom <sunkan@zappa.cx>,
	linux-ext4@vger.kernel.org, dm-devel@redhat.com,
	linux-raid@vger.kernel.org, Christoph Hellwig <hch@infradead.org>
Subject: Re: discard + LVM
Date: Mon, 8 Mar 2010 11:54:45 -0500	[thread overview]
Message-ID: <170fa0d21003080854l1c7e8a76w277b1d1ce51da2e@mail.gmail.com> (raw)
In-Reply-To: <yq18wa4c9qn.fsf@sermon.lab.mkp.net>

On Sun, Mar 7, 2010 at 12:38 PM, Martin K. Petersen
<martin.petersen@oracle.com> wrote:
>>>>>> "Eric" == Eric Sandeen <sandeen@redhat.com> writes:
>
> Eric> Andreas Sundstrom wrote:
>>> Hi..
>>>
>>> I have an OCZ agility SSD drive with FW 1.5 that supports the TRIM
>>> command.
>>>
>>> I can see that it works on a plain partition.  But it does not seem
>>> to work together with LVM.
>>>
>>> So I'm wondering if this is expected and whether it is something that
>>> will be worked on to get fixed?
>
> Eric> It is expected, as lvm is not yet passing discard requests.
>
> I'm working on this.  Missed the 2.6.34 merge window so I'm aiming at
> 2.6.35.

Hey Martin,

We've been scoping the work associated with adding discard support to
DM (afaik MD would need comparable infrastructure, e.g.: spliting
discard requests).

There is a fair amount of complexity associated with this work.
Especially when you look to support discards for some of the more
advanced DM targets.  Discard support for the 'linear' target is the
relatively low hanging fruit.  The 'striped' target gets more
interesting (having to split the discard into multiple discards to
submit to the appropriate underlying devices in the striped volume).

One thought was we might have a block layer hook along the lines of
the q->merge_bvec_fn (similar but hopefully less
problematic/controversial).  Christoph removed a hook that was vaguely
like this, but posed allocation problems, with linux-2.6 commit:
c15227de132f

Please feel free to share your patches/design with dm-devel.  (I'll
also check with Alasdair to see about making the dm-devel filtering
less prone to eat mail)

Thanks!
Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-03-08 16:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4B922929.5020006@zappa.cx>
2010-03-07  5:38 ` discard + LVM Eric Sandeen
2010-03-07 17:38   ` Martin K. Petersen
2010-03-08  6:53     ` Andreas Sundstrom
2010-03-08 16:54     ` Mike Snitzer [this message]
2010-03-08 19:46       ` Martin K. Petersen

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=170fa0d21003080854l1c7e8a76w277b1d1ce51da2e@mail.gmail.com \
    --to=snitzer@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=hch@infradead.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=sandeen@redhat.com \
    --cc=sunkan@zappa.cx \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).