Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752853AbbLNIYg (ORCPT ); Mon, 14 Dec 2015 03:24:36 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:32939 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752466AbbLNIYb (ORCPT ); Mon, 14 Dec 2015 03:24:31 -0500 From: Baolin Wang To: axboe@kernel.dk, agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com Cc: neilb@suse.com, dan.j.williams@intel.com, martin.petersen@oracle.com, sagig@mellanox.com, kent.overstreet@gmail.com, keith.busch@intel.com, tj@kernel.org, broonie@kernel.org, arnd@arndb.de, linux-block@vger.kernel.org, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, baolin.wang@linaro.org Subject: [PATCH 0/2] Optimize the dm-crypt for XTS mode Date: Mon, 14 Dec 2015 16:23:38 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 940 Lines: 25 In now dm-crypt code, we find it only send one scatterlist which maps one segment of one bio to the crypto engine at one time. But that will be more time-consuming and ineffective for the crypto engine. For XTS mode, it can map the whole bio with multiple scatterlists, and send all the scatterlists to the crypto engine which can improve the performance. Baolin Wang (2): block: Export the __blk_bios_map_sg() to map one bio md: dm-crypt: Optimize the dm-crypt for XTS mode block/blk-merge.c | 7 +- drivers/md/dm-crypt.c | 315 +++++++++++++++++++++++++++++++++++++++++++++++- include/linux/blkdev.h | 3 + 3 files changed, 316 insertions(+), 9 deletions(-) -- 1.7.9.5 -- 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/