Skip to content

Commit

Permalink
[PATCH] dac960: add disk entropy in request completions
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Mackall <mpm@selenic.com>
Tested-by: Anders K. Pedersen <akp@cohaesio.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Matt Mackall authored and Linus Torvalds committed Mar 8, 2006
1 parent 07ed76b commit 62287fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/block/DAC960.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -3463,7 +3464,7 @@ static inline boolean DAC960_ProcessCompletedRequest(DAC960_Command_T *Command,
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) {
Expand Down

0 comments on commit 62287fb

Please sign in to comment.