options: ensure that we check all candidates on is_set check
authorJens Axboe <axboe@fb.com>
Tue, 23 Dec 2014 03:03:50 +0000 (20:03 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 23 Dec 2014 03:03:50 +0000 (20:03 -0700)
commitf0e7f45a2c73f2810f45f2bb2938ebdcd1a8bf23
treea60790b665455c8a7ddb687bde364a94b49be2f9
parentcf3b23e4c09a57a949aa2c61e3fa8cf8e671b086
options: ensure that we check all candidates on is_set check

We can have multiple options that touch the same variable. One
example is cpus_allowed or cpumask, both will set the same
backend variable. But if we set cpumask= and later check if
cpus_allowed is set, then we want that to report true.

This breaks certain options since b2a9e6496494.

Reported-by: Vincent Fu <Vincent.Fu@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
options.c