OSDN Git Service

RDMA/hns: Fix the wrong type of parameter "op" of the mailbox
[uclinux-h8/linux.git] / block / blk-rq-qos.h
index f000f83..3cfbc86 100644 (file)
@@ -189,9 +189,10 @@ static inline void rq_qos_throttle(struct request_queue *q, struct bio *bio)
         * BIO_TRACKED lets controllers know that a bio went through the
         * normal rq_qos path.
         */
-       bio_set_flag(bio, BIO_TRACKED);
-       if (q->rq_qos)
+       if (q->rq_qos) {
+               bio_set_flag(bio, BIO_TRACKED);
                __rq_qos_throttle(q->rq_qos, bio);
+       }
 }
 
 static inline void rq_qos_track(struct request_queue *q, struct request *rq,