Skip to contentSkip to conversation

Let DAC960 supply entropy to random pool]

PATCH Matt Mackall 1 participant 1 message Mar 7, 2006 Block layer

lore
Share & tools
lore

Matt Mackall

author Tested-by Anders K. Pedersen
#0 lore raw

Add disk entropy in DAC960 request completions.

drivers/block/DAC960.c +2 -1
Index: 2.6/drivers/block/DAC960.c
===================================================================
@@ -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) {
Signature · 1 line
Mathematics is the supreme nostalgia of our time.