Skip to content

Commit

Permalink
Clear QUEUE_FLAG_ADD_RANDOM on zvols
Browse files Browse the repository at this point in the history
zvols should not be an entropy source for the kernel. Disable it to be
consistent with the upstream kernel.

torvalds/linux@b277da0

Signed-off-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#3713
  • Loading branch information
ryao authored and behlendorf committed Aug 30, 2015
1 parent 3757bff commit c6a3a22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/zfs/zvol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,9 @@ __zvol_create_minor(const char *name, boolean_t ignore_snapdev)
#ifdef HAVE_BLK_QUEUE_NONROT
queue_flag_set_unlocked(QUEUE_FLAG_NONROT, zv->zv_queue);
#endif
#ifdef QUEUE_FLAG_ADD_RANDOM
queue_flag_clear_unlocked(QUEUE_FLAG_ADD_RANDOM, zv->zv_queue);
#endif

if (spa_writeable(dmu_objset_spa(os))) {
if (zil_replay_disable)
Expand Down

0 comments on commit c6a3a22

Please sign in to comment.