Skip to content

Commit

Permalink
Merge branch 'for-6.13/block' into for-next
Browse files Browse the repository at this point in the history
* for-6.13/block:
  Revert "blk-throttle: Fix IO hang for a corner case"
  • Loading branch information
axboe committed Oct 16, 2024
2 parents a151f85 + 97550f7 commit dcdcc9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions block/blk-throttle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1485,13 +1485,13 @@ static ssize_t tg_set_limit(struct kernfs_open_file *of,
goto out_finish;

ret = -EINVAL;
if (!strcmp(tok, "rbps") && val > 1)
if (!strcmp(tok, "rbps"))
v[0] = val;
else if (!strcmp(tok, "wbps") && val > 1)
else if (!strcmp(tok, "wbps"))
v[1] = val;
else if (!strcmp(tok, "riops") && val > 1)
else if (!strcmp(tok, "riops"))
v[2] = min_t(u64, val, UINT_MAX);
else if (!strcmp(tok, "wiops") && val > 1)
else if (!strcmp(tok, "wiops"))
v[3] = min_t(u64, val, UINT_MAX);
else
goto out_finish;
Expand Down

0 comments on commit dcdcc9b

Please sign in to comment.