From: Mike Snitzer <snitzer@redhat.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: dm-devel@redhat.com
Subject: Re: [PATCH, RFC] dm: relax discard restrictions
Date: Wed, 27 Apr 2011 11:19:11 -0400 [thread overview]
Message-ID: <20110427151911.GF7294@redhat.com> (raw)
In-Reply-To: <20110427150623.GC13487@infradead.org>
On Wed, Apr 27 2011 at 11:06am -0400,
Christoph Hellwig <hch@infradead.org> wrote:
> With targets like dm-thinp we might want to allow discard even if the
> underlying devices don't support them natively. This patch is the
> extreme variant of not restricting discard support at all, but maybe
> there are other options. Or maybe we should keep the old
> dm_table_supports_discards function as a helper for targets that
> want simple discard passthrough?
I think we could accomplish the same by adding a target override flag
(e.g. ti->discards_supported) that enables dm_table_supports_discards()
to short-circuit device_discard_capable's native discard checking.
Mike
next prev parent reply other threads:[~2011-04-27 15:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-27 15:06 [PATCH, RFC] dm: relax discard restrictions Christoph Hellwig
2011-04-27 15:19 ` Mike Snitzer [this message]
2011-04-27 21:55 ` [PATCH] dm: allow a target to " Mike Snitzer
2011-04-28 8:41 ` Christoph Hellwig
2011-04-28 15:04 ` Mike Snitzer
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=20110427151911.GF7294@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.com \
--cc=hch@infradead.org \
/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