hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/block/blk-ioc.c
....@@ -9,6 +9,7 @@
99 #include <linux/blkdev.h>
1010 #include <linux/slab.h>
1111 #include <linux/sched/task.h>
12
+#include <linux/delay.h>
1213
1314 #include "blk.h"
1415
....@@ -119,7 +120,7 @@
119120 spin_unlock(q->queue_lock);
120121 } else {
121122 spin_unlock_irqrestore(&ioc->lock, flags);
122
- cpu_relax();
123
+ cpu_chill();
123124 spin_lock_irqsave_nested(&ioc->lock, flags, 1);
124125 }
125126 }
....@@ -203,7 +204,7 @@
203204 spin_unlock(icq->q->queue_lock);
204205 } else {
205206 spin_unlock_irqrestore(&ioc->lock, flags);
206
- cpu_relax();
207
+ cpu_chill();
207208 goto retry;
208209 }
209210 }