If we had multiple sleepers before we don't need to worry about never
being woken up.  If we're woken up randomly without having gotten our
inflight token then we need to go back to sleep, we won't be properly
woken up without being given our inflight token anyway so this resetting
isn't needed.

Signed-off-by: Josef Bacik <[email protected]>
---
 block/blk-rq-qos.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/block/blk-rq-qos.c b/block/blk-rq-qos.c
index f4aa7b818cf5..35bc6f54d088 100644
--- a/block/blk-rq-qos.c
+++ b/block/blk-rq-qos.c
@@ -261,7 +261,6 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data,
                        break;
                }
                io_schedule();
-               has_sleeper = false;
        } while (1);
        finish_wait(&rqw->wait, &data.wq);
 }
-- 
2.17.1

Reply via email to