pvsync2: Add hipri_percentage option
authorStephen Bates <sbates@raithlin.com>
Thu, 27 Jul 2017 20:02:15 +0000 (14:02 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Jul 2017 20:12:42 +0000 (14:12 -0600)
commita0679ce5a9652f760e93ae083291f557ded60758
treec4d989809ba0ba557aa242e6fbd55dc738a4d3a2
parentdad0ea54b595ad656aca4087014afb438c7d44f0
pvsync2: Add hipri_percentage option

Allow the user to set the probability of a pvsync2 IO being high
priority. Add a new option for the pvsync2 engine called
--hipri_percentage will takes values in the range (0, 100) and use
that as a probability for setting RWF_HIPRI. The default for this
option is 100 so exisiting users of --hirpi are unaffected.

Changes since v3:
  Remove unwanted #ifdefs

Changes since v2:
  s/_probability/_percentage/

Changes since v1:
  Use --hipri_probability rather than impacting --hipri
  Correct the random number generator call

Signed-off-by: Stephen Bates <sbates@raithlin.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
HOWTO
engines/sync.c
fio.1