staging/lustre/crypto: add crc32c module loading to libcfs
authorAlexander.Boyko <alexander_boyko@xyratex.com>
Mon, 22 Jul 2013 16:06:49 +0000 (00:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 20:35:50 +0000 (13:35 -0700)
This patch add automatically module loading for crc32c
when libcfs is starting.

Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2212
Lustre-change: http://review.whamcloud.com/4372
Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Shuichi Ihara <sihara@ddn.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c

index 8e35777b4da5ff48aa2e4e255b1c418f1932f784..b6c79bc177adc7e31ff3a6c45c80ae876a090248 100644 (file)
@@ -274,6 +274,8 @@ static int adler32;
 
 int cfs_crypto_register(void)
 {
+       request_module("crc32c");
+
        adler32 = cfs_crypto_adler32_register();
 
        /* check all algorithms and do performance test */