[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <db3291f8338ef47059c64b10d4510d506acaac3d.1458023699.git.baolin.wang@linaro.org>
Date: Tue, 15 Mar 2016 15:48:02 +0800
From: Baolin Wang <baolin.wang@...aro.org>
To: herbert@...dor.apana.org.au, davem@...emloft.net, agk@...hat.com,
snitzer@...hat.com, axboe@...com, dm-devel@...hat.com
Cc: akpm@...ux-foundation.org, david.s.gordon@...el.com,
thomas.lendacky@....com, robert.jarzmik@...e.fr,
yamada.masahiro@...ionext.com, smueller@...onox.de,
tadeusz.struk@...el.com, standby24x7@...il.com, shli@...nel.org,
broonie@...nel.org, linus.walleij@...aro.org, arnd@...db.de,
baolin.wang@...aro.org, linux-kernel@...r.kernel.org,
linux-crypto@...r.kernel.org, linux-raid@...r.kernel.org
Subject: [PATCH v2 4/4] md: dm-crypt: Initialize the sector number for one request
If the crypto engine can support the bulk mode, that means the contiguous
requests from one block can be merged into one request to be handled by
crypto engine. If so, the crypto engine need the sector number of one request
to do merging action.
Signed-off-by: Baolin Wang <baolin.wang@...aro.org>
---
drivers/md/dm-crypt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c
index 3147c8d..9e2dbfd 100644
--- a/drivers/md/dm-crypt.c
+++ b/drivers/md/dm-crypt.c
@@ -866,6 +866,7 @@ static int crypt_convert_block(struct crypt_config *cc,
return r;
}
+ req->sector = ctx->cc_sector;
ablkcipher_request_set_crypt(req, &dmreq->sg_in, &dmreq->sg_out,
1 << SECTOR_SHIFT, iv);
--
1.7.9.5
Powered by blists - more mailing lists