All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steffen Klassert <steffen.klassert@secunet.com>
To: Mandeep Singh Baines <msb@chromium.org>
Cc: Alasdair G Kergon <agk@redhat.com>,
	dm-devel@redhat.com, Will Drewry <wad@chromium.org>,
	Elly Jones <ellyjones@chromium.org>,
	Milan Broz <mbroz@redhat.com>,
	Olof Johansson <olofj@chromium.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dm: verity target
Date: Thu, 10 Nov 2011 08:44:08 +0100	[thread overview]
Message-ID: <20111110074408.GE10138@secunet.com> (raw)
In-Reply-To: <1320902290-19050-1-git-send-email-msb@chromium.org>

On Wed, Nov 09, 2011 at 09:18:10PM -0800, Mandeep Singh Baines wrote:
>
> + * TODO(wad): All hash storage memory is pre-allocated and freed once an
> + * entire branch has been verified.
> + */
> +struct dm_bht {
> +	/* Configured values */
> +	int depth;  /* Depth of the tree including the root */
> +	unsigned int block_count;  /* Number of blocks hashed */
> +	unsigned int block_size;  /* Size of a hash block */
> +	char hash_alg[CRYPTO_MAX_ALG_NAME];
> +	unsigned char salt[DM_BHT_SALT_SIZE];
> +
> +	/* Computed values */
> +	unsigned int node_count;  /* Data size (in hashes) for each entry */
> +	unsigned int node_count_shift;  /* first bit set - 1 */
> +	/* There is one per CPU so that verified can be simultaneous. */
> +	struct hash_desc hash_desc[NR_CPUS];  /* Container for the hash alg */

Please don't add a new user for the old hash interface. If the hashes can
be done asynchronous you can use ahash, if not use shash. Both interfaces
are reentrant, that's probaply what you want to have here. You don't
need to have this in a per cpu manner.

  reply	other threads:[~2011-11-10  7:44 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-10  5:18 [PATCH] dm: verity target Mandeep Singh Baines
2011-11-10  5:18 ` Mandeep Singh Baines
2011-11-10  7:44 ` Steffen Klassert [this message]
2011-11-10 14:42   ` Will Drewry
2011-11-11 17:34   ` [PATCH v2] " Mandeep Singh Baines
2011-11-11 17:34     ` Mandeep Singh Baines
2011-11-14  9:22     ` Steffen Klassert
2011-11-14 17:54       ` Mandeep Singh Baines
2011-11-15  9:19         ` Steffen Klassert
2011-11-22 22:15           ` Mandeep Singh Baines
  -- strict thread matches above, loose matches on Subject: below --
2012-03-10  0:03 [PATCH] " Mandeep Singh Baines
2012-03-02  0:33 Mandeep Singh Baines
2012-03-02 16:08 ` Mandeep Singh Baines
2012-03-02 16:08   ` Mandeep Singh Baines
2012-02-28 22:57 Mandeep Singh Baines
2012-02-29 21:16 ` Mikulas Patocka
2012-03-01  6:24   ` Mandeep Singh Baines
2012-02-29 21:30 ` Andrew Morton
2012-01-04 21:49 Mandeep Singh Baines
2012-01-04 21:49 ` Mandeep Singh Baines
2012-01-04 22:42 ` Mandeep Singh Baines
2012-01-04 22:42   ` Mandeep Singh Baines
2011-12-22  0:36 Mandeep Singh Baines
2011-12-22  0:36 ` Mandeep Singh Baines
2011-09-15 22:02 Wesley Miaw
2011-09-15 18:45 Mandeep Singh Baines
2011-09-16 17:54 ` Valdis.Kletnieks
2011-09-27 19:02 ` Will Drewry
2011-09-27 19:13   ` Alasdair G Kergon
2011-09-27 19:31     ` Will Drewry
2011-09-27 19:31       ` Will Drewry
2011-09-28 21:30   ` Valdis.Kletnieks
2011-09-29  1:07     ` John Stoffel
2011-09-29 17:31     ` Mandeep Singh Baines

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=20111110074408.GE10138@secunet.com \
    --to=steffen.klassert@secunet.com \
    --cc=agk@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=ellyjones@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbroz@redhat.com \
    --cc=msb@chromium.org \
    --cc=olofj@chromium.org \
    --cc=wad@chromium.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 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.