Re: [PATCH] Let DAC960 supply entropy to random pool]

From: Matt Mackall
Date: Tue Mar 07 2006 - 13:58:24 EST


Add disk entropy in DAC960 request completions.

Signed-off-by: Matt Mackall <mpm@xxxxxxxxxxx>
Tested-by: Anders K. Pedersen <akp@xxxxxxxxxxxx>

Index: 2.6/drivers/block/DAC960.c
===================================================================
--- 2.6.orig/drivers/block/DAC960.c 2006-03-01 23:32:32.000000000 -0600
+++ 2.6/drivers/block/DAC960.c 2006-03-06 11:41:45.000000000 -0600
@@ -41,6 +41,7 @@
#include <linux/timer.h>
#include <linux/pci.h>
#include <linux/init.h>
+#include <linux/random.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include "DAC960.h"
@@ -3463,7 +3464,7 @@ static inline boolean DAC960_ProcessComp
Command->SegmentCount, Command->DmaDirection);

if (!end_that_request_first(Request, UpToDate, Command->BlockCount)) {
-
+ add_disk_randomness(Request->rq_disk);
end_that_request_last(Request, UpToDate);

if (Command->Completion) {


--
Mathematics is the supreme nostalgia of our time.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/