[PATCH 0/2] Optimize the dm-crypt for XTS mode

2015-12-14 Thread 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

[PATCH 0/2] Optimize the dm-crypt for XTS mode

2015-12-14 Thread 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