Commit bdcfa3e5 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

random: export add_disk_randomness

This will be needed for pending changes to the scsi midlayer that now
calls lower level block APIs, as well as any blk-mq driver that wants to
contribute to the random pool.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent c4a634f4
...@@ -902,6 +902,7 @@ void add_disk_randomness(struct gendisk *disk) ...@@ -902,6 +902,7 @@ void add_disk_randomness(struct gendisk *disk)
add_timer_randomness(disk->random, 0x100 + disk_devt(disk)); add_timer_randomness(disk->random, 0x100 + disk_devt(disk));
trace_add_disk_randomness(disk_devt(disk), ENTROPY_BITS(&input_pool)); trace_add_disk_randomness(disk_devt(disk), ENTROPY_BITS(&input_pool));
} }
EXPORT_SYMBOL_GPL(add_disk_randomness);
#endif #endif
/********************************************************************* /*********************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment