Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f037937 authored by Andreas Schwab's avatar Andreas Schwab Committed by Jens Axboe
Browse files

blk-throttle: don't call xchg on bool



xchg does not work portably with smaller than 32bit types.

Signed-off-by: default avatarAndreas Schwab <schwab@linux-m68k.org>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent ee3dea35
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ struct throtl_grp {
	unsigned long slice_end[2];

	/* Some throttle limits got updated for the group */
	bool limits_changed;
	int limits_changed;
};

struct throtl_data
@@ -102,7 +102,7 @@ struct throtl_data
	/* Work for dispatching throttled bios */
	struct delayed_work throtl_work;

	bool limits_changed;
	int limits_changed;
};

enum tg_state_flags {