]> git.baikalelectronics.ru Git - kernel.git/commit
ima: introduce multi-page collect buffers
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Tue, 6 May 2014 11:47:13 +0000 (14:47 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 17 Jul 2014 13:35:11 +0000 (09:35 -0400)
commita1617c39737b5180ce3178f432736ec2a2f05abb
treec3d39715070ca8c0d832c95818e05524555c7bf2
parentc3c03a79a32d0e4f430382812eb0ca060b50f962
ima: introduce multi-page collect buffers

Use of multiple-page collect buffers reduces:
1) the number of block IO requests
2) the number of asynchronous hash update requests

Second is important for HW accelerated hashing, because significant
amount of time is spent for preparation of hash update operation,
which includes configuring acceleration HW, DMA engine, etc...
Thus, HW accelerators are more efficient when working on large
chunks of data.

This patch introduces usage of multi-page collect buffers. Buffer size
can be specified using 'ahash_bufsize' module parameter. Default buffer
size is 4096 bytes.

Changes in v3:
- kernel parameter replaced with module parameter

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Documentation/kernel-parameters.txt
security/integrity/ima/ima_crypto.c