linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Optimize the dm-crypt for XTS mode
@ 2015-12-14  8:23 Baolin Wang
  2015-12-14  8:23 ` [PATCH 1/2] block: Export the __blk_bios_map_sg() to map one bio Baolin Wang
  2015-12-14  8:23 ` [PATCH 2/2] md: dm-crypt: Optimize the dm-crypt for XTS mode Baolin Wang
  0 siblings, 2 replies; 7+ messages in thread
From: Baolin Wang @ 2015-12-14  8:23 UTC (permalink / raw)
  To: axboe, agk, snitzer, dm-devel
  Cc: neilb, dan.j.williams, martin.petersen, sagig, kent.overstreet,
	keith.busch, tj, broonie, arnd, linux-block, linux-raid,
	linux-kernel, baolin.wang

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-12-15 11:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14  8:23 [PATCH 0/2] Optimize the dm-crypt for XTS mode Baolin Wang
2015-12-14  8:23 ` [PATCH 1/2] block: Export the __blk_bios_map_sg() to map one bio Baolin Wang
2015-12-14  8:23 ` [PATCH 2/2] md: dm-crypt: Optimize the dm-crypt for XTS mode Baolin Wang
2015-12-14 23:31   ` Milan Broz
2015-12-15  2:56     ` Baolin Wang
2015-12-15  8:20       ` Milan Broz
2015-12-15 11:35         ` Baolin Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).