Commit 0fdb731
thread-pool: use ThreadPool from the running thread
Use qemu_get_current_aio_context() where possible, since we always
submit work to the current thread anyways.
We want to also be sure that the thread submitting the work is
the same as the one processing the pool, to avoid adding
synchronization to the pool list.
Signed-off-by: Emanuele Giuseppe Esposito <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Kevin Wolf <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>1 parent a75e4e4 commit 0fdb731
File tree
5 files changed
+21
-18
lines changed- block
- include/block
- util
5 files changed
+21
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2040 | 2040 | | |
2041 | 2041 | | |
2042 | 2042 | | |
2043 | | - | |
2044 | | - | |
| 2043 | + | |
2045 | 2044 | | |
2046 | 2045 | | |
2047 | | - | |
| 2046 | + | |
2048 | 2047 | | |
2049 | 2048 | | |
2050 | 2049 | | |
| |||
2112 | 2111 | | |
2113 | 2112 | | |
2114 | 2113 | | |
2115 | | - | |
| 2114 | + | |
2116 | 2115 | | |
2117 | 2116 | | |
2118 | 2117 | | |
| |||
2181 | 2180 | | |
2182 | 2181 | | |
2183 | 2182 | | |
2184 | | - | |
| 2183 | + | |
2185 | 2184 | | |
2186 | 2185 | | |
2187 | 2186 | | |
| |||
2243 | 2242 | | |
2244 | 2243 | | |
2245 | 2244 | | |
2246 | | - | |
| 2245 | + | |
2247 | 2246 | | |
2248 | 2247 | | |
2249 | 2248 | | |
| |||
2992 | 2991 | | |
2993 | 2992 | | |
2994 | 2993 | | |
2995 | | - | |
| 2994 | + | |
2996 | 2995 | | |
2997 | 2996 | | |
2998 | 2997 | | |
| |||
3067 | 3066 | | |
3068 | 3067 | | |
3069 | 3068 | | |
3070 | | - | |
| 3069 | + | |
3071 | 3070 | | |
3072 | 3071 | | |
3073 | 3072 | | |
| |||
3305 | 3304 | | |
3306 | 3305 | | |
3307 | 3306 | | |
3308 | | - | |
| 3307 | + | |
3309 | 3308 | | |
3310 | 3309 | | |
3311 | 3310 | | |
| |||
3635 | 3634 | | |
3636 | 3635 | | |
3637 | 3636 | | |
3638 | | - | |
| 3637 | + | |
3639 | 3638 | | |
3640 | 3639 | | |
3641 | 3640 | | |
| |||
3651 | 3650 | | |
3652 | 3651 | | |
3653 | 3652 | | |
3654 | | - | |
| 3653 | + | |
3655 | 3654 | | |
3656 | 3655 | | |
3657 | 3656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
| |||
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
198 | | - | |
199 | 197 | | |
200 | | - | |
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
| |||
211 | 208 | | |
212 | 209 | | |
213 | 210 | | |
214 | | - | |
215 | 211 | | |
216 | 212 | | |
217 | 213 | | |
| |||
251 | 247 | | |
252 | 248 | | |
253 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
254 | 253 | | |
255 | 254 | | |
256 | 255 | | |
| |||
0 commit comments