Commit 3369ce4f authored by Jens Axboe's avatar Jens Axboe

[PATCH] AS barrier bug

There's a bug in AS, it sets HARDBARRIER on a request when it should be
setting it as a softbarrier. IO scheduler has no business using that
bit, if it needs to put barriers there they should be soft. Hard
barriers involve hardware operations.
parent 450fa027
...@@ -1249,7 +1249,7 @@ static int as_dispatch_request(struct as_data *ad) ...@@ -1249,7 +1249,7 @@ static int as_dispatch_request(struct as_data *ad)
ad->changed_batch = 0; ad->changed_batch = 0;
} else } else
ad->changed_batch = 2; ad->changed_batch = 2;
arq->request->flags |= REQ_HARDBARRIER; arq->request->flags |= REQ_SOFTBARRIER;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment