Skip to content

Commit

Permalink
blk-throttle: don't call xchg on bool
Browse files Browse the repository at this point in the history
xchg does not work portably with smaller than 32bit types.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
  • Loading branch information
Andreas Schwab authored and Jens Axboe committed Apr 5, 2011
1 parent ee3dea3 commit 6f03793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block/blk-throttle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 6f03793

Please sign in to comment.