]> git.baikalelectronics.ru Git - kernel.git/commit
block: add sysfs knob for turning off disk entropy contributions
authorJens Axboe <jaxboe@fusionio.com>
Wed, 9 Jun 2010 08:42:09 +0000 (10:42 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:13:00 +0000 (18:13 +0200)
commit785d9501bbd9ddfc91b9e44845ba006788b2ce8b
treefd5ec8a580d4333b471acfe50f6f92b4cc880087
parentf3e194e97b014034f507792c386975d458b6a69f
block: add sysfs knob for turning off disk entropy contributions

There are two reasons for doing this:

- On SSD disks, the completion times aren't as random as they
  are for rotational drives. So it's questionable whether they
  should contribute to the random pool in the first place.

- Calling add_disk_randomness() has a lot of overhead.

This adds /sys/block/<dev>/queue/add_random that will allow you to
switch off on a per-device basis. The default setting is on, so there
should be no functional changes from this patch.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-core.c
block/blk-sysfs.c
include/linux/blkdev.h