block: Fix queue_flag update when rq_affinity goes from 2 to 1
authorEric Seppanen <eric@purestorage.com>
Tue, 23 Aug 2011 19:25:12 +0000 (21:25 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Wed, 24 Aug 2011 06:51:34 +0000 (08:51 +0200)
commite8037d49835482c9534a9a07bed0d0ea831135ae
treef4d7f714c8a4165cacdcc83e9c6bfe7efb527a24
parent89c63a8ef36a621cb6790c1a56c737e6805ad8f4
block: Fix queue_flag update when rq_affinity goes from 2 to 1

Commit 5757a6d76cdf added the QUEUE_FLAG_SAME_FORCE flag, but fails to
clear that flag when the current state is '2' (SAME_COMP + SAME_FORCE)
and the new state is '1' (SAME_COMP).

Acked-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Eric Seppanen <eric@purestorage.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-sysfs.c