| .. | .. |
|---|
| 9 | 9 | #include <linux/blkdev.h> |
|---|
| 10 | 10 | #include <linux/slab.h> |
|---|
| 11 | 11 | #include <linux/sched/task.h> |
|---|
| 12 | +#include <linux/delay.h> |
|---|
| 12 | 13 | |
|---|
| 13 | 14 | #include "blk.h" |
|---|
| 14 | 15 | |
|---|
| .. | .. |
|---|
| 119 | 120 | spin_unlock(q->queue_lock); |
|---|
| 120 | 121 | } else { |
|---|
| 121 | 122 | spin_unlock_irqrestore(&ioc->lock, flags); |
|---|
| 122 | | - cpu_relax(); |
|---|
| 123 | + cpu_chill(); |
|---|
| 123 | 124 | spin_lock_irqsave_nested(&ioc->lock, flags, 1); |
|---|
| 124 | 125 | } |
|---|
| 125 | 126 | } |
|---|
| .. | .. |
|---|
| 203 | 204 | spin_unlock(icq->q->queue_lock); |
|---|
| 204 | 205 | } else { |
|---|
| 205 | 206 | spin_unlock_irqrestore(&ioc->lock, flags); |
|---|
| 206 | | - cpu_relax(); |
|---|
| 207 | + cpu_chill(); |
|---|
| 207 | 208 | goto retry; |
|---|
| 208 | 209 | } |
|---|
| 209 | 210 | } |
|---|