[multipath] option to use priorities as weights in the round-robin scheduler
authorroot <root@xa-s05.(none)>
Wed, 24 Aug 2005 14:48:40 +0000 (16:48 +0200)
committerroot <root@xa-s05.(none)>
Wed, 24 Aug 2005 14:48:40 +0000 (16:48 +0200)
commitfa6c7abdaaf3d3d357fc575d7becfdcec2ad23cd
tree4a8a9fa57f4987d702bca57305f9d9f89747c371
parent759b2998d0a312fbd2a30ff033419939a7bc355c
[multipath] option to use priorities as weights in the round-robin scheduler

Disabled by default.

Synthax is "rr_weight = priorities", and is valid in the default{},
device{} and multipath{} blocks.

This is an interim solution before a cleaner "least queued scheduler".

To make this complete, the daemon should be able to "message" DM to
change the path weights when their prio changes. Probably not worth the
effort and spend time on another scheduler.

The core of this patch is in the multipath table setup :

if (mp->rr_weight && pp->priority)
minio = conf->rr_minio * pp->priority;

The rest is the config switch handling, and printing.
libmultipath/config.h
libmultipath/dict.c
libmultipath/print.c
libmultipath/print.h
libmultipath/propsel.c
libmultipath/propsel.h
libmultipath/structs.c
libmultipath/structs.h
multipath/main.c