Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1283442

Re: [PATCH v2 0/2] dm verity: add support for error correction

From Mike Snitzer <snitzer@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 0/2] dm verity: add support for error correction
Date 2015-12-04 00:10 +0100
Message-ID <qBLaF-34j-7@gated-at.bofh.it> (permalink)
References <qri9Y-iH-3@gated-at.bofh.it> <qBD3s-6ip-5@gated-at.bofh.it> <qBIcO-10F-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Dec 03 2015 at  2:54pm -0500,
Mike Snitzer <snitzer@redhat.com> wrote:

> On Thu, Dec 03 2015 at  9:26am -0500,
> Sami Tolvanen <samitolvanen@google.com> wrote:
> 
> > Changes since v1:
> > 
> >   - Added CONFIG_DM_VERITY_FEC and split error correction into
> >     dm-verity-fec.[ch] to further separate the functionality from the
> >     rest of dm-verity. Follows the same pattern as dm-uevent.
> > 
> >   - Added missing dependencies for REED_SOLOMON to Kconfig.
> > 
> >   - Renamed dm-verity.c to dm-verity-target.c to allow an optional
> >     object to be added. Follows the naming convention of dm-cache and
> >     dm-era.
> > 
> >   - Changed the algorithm to work with one or more small buffers (~4k)
> >     instead of a single large one. The more buffers we can allocate,
> >     the faster it will work, but we don't have to preallocate a large
> >     amount of memory anymore.
> > 
> >   - Changed memory allocation to use mempools. v2 preallocates all the
> >     memory required for each worker thread to guarantee forward
> >     progress in case of memory pressure. The code attempts to allocate
> >     more buffers (using GFP_NOIO) and uses them if available.
> > 
> >   - Added graceful handling of IO errors, which are now treated as any
> >     other corruption.
> > 
> >   - Rebased against linux-dm/for-next.
> 
> Thanks a lot for these advances, at a high-level it sounds like you've
> handled the issues raised as part of v1 review very well.
> 
> I'll review closer now.  Goal is to get these changes staged in
> linux-next for upstream inclusion during the 4.5 merge window.

I took a first pass through your code and pushed the result to this
temporary branch here:
http://git.kernel.org/cgit/linux/kernel/git/snitzer/linux.git/log/?h=dm-verity-fec

As you'll see, I focused primarily on splitting the dm-verity core
changes out from the FEC and ignore_zero_blocks changes.

Along the way I tweaked some style-nits here or there but the biggest
difference between your v2 and what I pushed is captured in this commit:
http://git.kernel.org/cgit/linux/kernel/git/snitzer/linux.git/commit/?h=dm-verity-fec&id=cc1339fae225d8cdc8fffeff30f0a9981367d6c0

If you're OK with those changes I'll fold that commit into your main FEC
commit.

I'll carry on with reviewing your new code (outside of dm-verity core)
tomorrow.

Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] dm verity: add support for error correction Sami Tolvanen <samitolvanen@google.com> - 2015-12-03 15:30 +0100
  [PATCH v2 2/2] dm verity: ignore zero blocks Sami Tolvanen <samitolvanen@google.com> - 2015-12-03 15:30 +0100
  Re: [PATCH v2 0/2] dm verity: add support for error correction Mike Snitzer <snitzer@redhat.com> - 2015-12-03 21:00 +0100
    Re: [PATCH v2 0/2] dm verity: add support for error correction Mike Snitzer <snitzer@redhat.com> - 2015-12-04 00:10 +0100
      Re: [PATCH v2 0/2] dm verity: add support for error correction Sami Tolvanen <samitolvanen@google.com> - 2015-12-04 11:10 +0100
        Re: [PATCH v2 0/2] dm verity: add support for error correction Mike Snitzer <snitzer@redhat.com> - 2015-12-04 22:10 +0100
          Re: [PATCH v2 0/2] dm verity: add support for error correction Sami Tolvanen <samitolvanen@google.com> - 2015-12-07 14:30 +0100
            Re: [PATCH v2 0/2] dm verity: add support for error correction Mike Snitzer <snitzer@redhat.com> - 2015-12-07 17:10 +0100
              Re: [PATCH v2 0/2] dm verity: add support for error correction Sami Tolvanen <samitolvanen@google.com> - 2015-12-07 17:40 +0100
                Re: [PATCH v2 0/2] dm verity: add support for error correction Milan Broz <mbroz@redhat.com> - 2015-12-07 19:10 +0100
                Re: [PATCH v2 0/2] dm verity: add support for error correction Mike Snitzer <snitzer@redhat.com> - 2015-12-07 20:10 +0100
                Re: [PATCH v2 0/2] dm verity: add support for error correction Sami Tolvanen <samitolvanen@google.com> - 2015-12-08 11:20 +0100

csiph-web