All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Alasdair G Kergon <agk@redhat.com>
Cc: device-mapper development <dm-devel@redhat.com>,
	Jens Axboe <jens.axboe@oracle.com>
Subject: Re: [PATCH] DM data integrity support
Date: Fri, 24 Oct 2008 00:36:50 -0400	[thread overview]
Message-ID: <yq1hc72d2xp.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <20081021125951.GD2810@agk.fab.redhat.com> (Alasdair G. Kergon's message of "Tue\, 21 Oct 2008 13\:59\:51 +0100")

>>>>> "agk" == Alasdair G Kergon <agk@redhat.com> writes:

agk> That message adds nothing to the preceding one that
agk> blk_integrity_compare() would have issued - the one bit of data
agk> it could add, namely the name of the mapped device, isn't there,
agk> so I've added it.  

m'kay


agk> I've also reduced it to KERN_WARN, and I'm a bit concerned about
agk> those messages issued by blk_integrity_compare() too i.e. any
agk> message like that will generate support requests asking what it
agk> means and how to fix the problem and eliminate the messages, but
agk> won't they sometimes be unavoidable and expected?

Well, they are there because they are important in the same sense as
"Your RAID is running in degraded mode".  If you've spent $$$$ on
integrity-capable hardware, one should think you'd want to use it
correctly.

Once this technology starts trickling down to commodity hardware we
may want to revisit.  And hopefully by then we'll have better userland
tools to manage this stuff.


[Cloning]

agk> I've separated that into its own patch - it's nothing to do with
agk> blk_integrity, and if it has unforseen side-effects we need
agk> people to be able to bisect to it.

That's fine.


agk> Perhaps change the register/unregister interface to make it
agk> symmetric: we always register and unregister when creating the
agk> device, then set the integrity to the appropriate value - which
agk> might include NULL - when the new table is put into place.

It seemed wasteful to register profiles since 99%+ of all storage
devices out there that don't have a need for them.  That's why I
deferred the allocation.  But I guess mere mortals compile without
BLK_DEV_INTEGRITY anyway so it may not matter that much...

Jens, what do you think?


agk> Currently how does device-mapper clear the integrity profile of a
agk> mapped_device which used to have one but which no longer does
agk> after a table swap?  In other words I'm suggesting 'not
agk> supported' could be a valid integrity profile, rather than
agk> requiring an 'unregister' (which seems to be missing from the
agk> appropriate code path in this patch anyway).

I botched the unregister stuff when I redid the patch after the
previous round of feedback.  Will fix...

-- 
Martin K. Petersen	Oracle Linux Engineering

  reply	other threads:[~2008-10-24  4:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-17 14:47 [PATCH] DM data integrity support Martin K. Petersen
2008-10-21 12:59 ` Alasdair G Kergon
2008-10-24  4:36   ` Martin K. Petersen [this message]
2008-10-24  6:25     ` Jens Axboe
2008-10-24 10:51     ` Alasdair G Kergon
  -- strict thread matches above, loose matches on Subject: below --
2009-03-10  3:46 [PATCH] dm: Data " Martin K. Petersen
2009-03-27 21:20 ` Alasdair G Kergon

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=yq1hc72d2xp.fsf@sermon.lab.mkp.net \
    --to=martin.petersen@oracle.com \
    --cc=agk@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=jens.axboe@oracle.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.