summaryrefslogtreecommitdiff
path: root/crypto/xor.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-09-08 17:55:21 -0700
committerDan Williams <dan.j.williams@intel.com>2009-09-08 17:55:21 -0700
commitfc478cda4e254a7d0eb1978dc9c02c866507f328 (patch)
tree020d8b48d6f048140d561c6e25354d7431169eea /crypto/xor.c
parente7b436f1a4f24f5de8f0ccd4ec643c771d5e9f8a (diff)
parent88fd32554ae2782729bd3031d978bfbba0669459 (diff)
downloadlinux-crypto-fc478cda4e254a7d0eb1978dc9c02c866507f328.tar.gz
linux-crypto-fc478cda4e254a7d0eb1978dc9c02c866507f328.zip
Merge branch 'dmaengine' into async-tx-next
Conflicts: crypto/async_tx/async_xor.c drivers/dma/ioat/dma_v2.h drivers/dma/ioat/pci.c drivers/md/raid5.c
Diffstat (limited to 'crypto/xor.c')
-rw-r--r--crypto/xor.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/xor.c b/crypto/xor.c
index 996b6ee5..fc5b836f 100644
--- a/crypto/xor.c
+++ b/crypto/xor.c
@@ -101,7 +101,12 @@ calibrate_xor_blocks(void)
void *b1, *b2;
struct xor_block_template *f, *fastest;
- b1 = (void *) __get_free_pages(GFP_KERNEL, 2);
+ /*
+ * Note: Since the memory is not actually used for _anything_ but to
+ * test the XOR speed, we don't really want kmemcheck to warn about
+ * reading uninitialized bytes here.
+ */
+ b1 = (void *) __get_free_pages(GFP_KERNEL | __GFP_NOTRACK, 2);
if (!b1) {
printk(KERN_WARNING "xor: Yikes! No memory available.\n");
return -ENOMEM;