[RAMEN9610-21380]USB: core: Fix races in character device registration and deregistraion
[GitHub/MotorolaMobilityLLC/kernel-slsi.git] / block / blk-throttle.c
index 17816a028dcbb6fb7f7fe4e068fb90f313448ebf..a8cd7b3d964716da095ecad1b088a942770af732 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Interface for controlling IO bandwidth on a request queue
  *
@@ -2222,13 +2223,7 @@ again:
 out_unlock:
        spin_unlock_irq(q->queue_lock);
 out:
-       /*
-        * As multiple blk-throtls may stack in the same issue path, we
-        * don't want bios to leave with the flag set.  Clear the flag if
-        * being issued.
-        */
-       if (!throttled)
-               bio_clear_flag(bio, BIO_THROTTLED);
+       bio_set_flag(bio, BIO_THROTTLED);
 
 #ifdef CONFIG_BLK_DEV_THROTTLING_LOW
        if (throttled || !td->track_bio_latency)