Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1348793 > unrolled thread
| Started by | Baolin Wang <baolin.wang@linaro.org> |
|---|---|
| First post | 2016-03-03 06:30 +0100 |
| Last post | 2016-03-03 06:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 4/4] md: dm-crypt: Initialize the sector number for one request Baolin Wang <baolin.wang@linaro.org> - 2016-03-03 06:30 +0100
| From | Baolin Wang <baolin.wang@linaro.org> |
|---|---|
| Date | 2016-03-03 06:30 +0100 |
| Subject | [PATCH 4/4] md: dm-crypt: Initialize the sector number for one request |
| Message-ID | <r8tZM-2hu-13@gated-at.bofh.it> |
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@linaro.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
Back to top | Article view | linux.kernel
csiph-web