]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - block/blk-rq-qos.c
mm, memcg: decouple e{low,min} state mutations from protection checks
[mirror_ubuntu-hirsute-kernel.git] / block / blk-rq-qos.c
index 18f3eab9f768a7a0a7438210e7fa9c46aa622ff8..656460636ad34a176297bfb991aba977b3c0e9ca 100644 (file)
@@ -273,6 +273,8 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data,
                if (data.got_token)
                        break;
                if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) {
+                       finish_wait(&rqw->wait, &data.wq);
+
                        /*
                         * We raced with wbt_wake_function() getting a token,
                         * which means we now have two. Put our local token