summaryrefslogtreecommitdiff
path: root/drivers/md/dm.h
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2012-09-26 22:45:43 (GMT)
committerAlasdair G Kergon <agk@redhat.com>2012-09-26 22:45:43 (GMT)
commitc3c4555edd10dbc0b388a0125b9c50de5e79af05 (patch)
tree6beec93488391802ad897ebeb4c208af432a5791 /drivers/md/dm.h
parentba1cbad93dd47223b1f3b8edd50dd9ef2abcb2ed (diff)
downloadlinux-fsl-qoriq-c3c4555edd10dbc0b388a0125b9c50de5e79af05.tar.xz
dm table: clear add_random unless all devices have it set
Always clear QUEUE_FLAG_ADD_RANDOM if any underlying device does not have it set. Otherwise devices with predictable characteristics may contribute entropy. QUEUE_FLAG_ADD_RANDOM specifies whether or not queue IO timings contribute to the random pool. For bio-based targets this flag is always 0 because such devices have no real queue. For request-based devices this flag was always set to 1 by default. Now set it according to the flags on underlying devices. If there is at least one device which should not contribute, set the flag to zero: If a device, such as fast SSD storage, is not suitable for supplying entropy, a request-based queue stacked over it will not be either. Because the checking logic is exactly same as for the rotational flag, share the iteration function with device_is_nonrot(). Signed-off-by: Milan Broz <mbroz@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm.h')
0 files changed, 0 insertions, 0 deletions