Commit c01938b
Z.I.A. disk open/close rework
Reworked how Z.I.A. opens and closes
disks when changing parameters, specifically
zia_provider and zia_disk/file_write.
The purpose is to remove redundant file/disk
openings when the provider has no use for them.
zia_get_provider() no longer opens vdevs
and the vdevs are now only opened in spa.c
whenever the provider is set AND either
zia_disk_write or zia_file_write is enabled.
Rather than calling the generic vdev_close/open(),
zia_open_vdevs() is called instead. Additionally,
the zia_open/close_vdevs() functions are now wrapped
with spa_vdev_state_enter() and spa_vdev_state_exit()
functions.
zia_close_vdevs() is not called whenever disabling
file_write and disk_write as it will eventually
be called whenever changing the provider or
freeing it by destroying the zpool.
Signed-off-by: Luke Beirne <[email protected]>1 parent be42ee0 commit c01938b
3 files changed
+59
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2180 | 2180 | | |
2181 | 2181 | | |
2182 | 2182 | | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
2183 | 2188 | | |
2184 | 2189 | | |
2185 | 2190 | | |
| |||
2251 | 2256 | | |
2252 | 2257 | | |
2253 | 2258 | | |
2254 | | - | |
2255 | | - | |
2256 | | - | |
2257 | | - | |
2258 | | - | |
2259 | 2259 | | |
2260 | 2260 | | |
2261 | 2261 | | |
| |||
9815 | 9815 | | |
9816 | 9816 | | |
9817 | 9817 | | |
9818 | | - | |
9819 | | - | |
| 9818 | + | |
9820 | 9819 | | |
9821 | 9820 | | |
9822 | 9821 | | |
9823 | | - | |
9824 | | - | |
9825 | | - | |
9826 | | - | |
9827 | | - | |
9828 | | - | |
9829 | | - | |
9830 | | - | |
9831 | | - | |
9832 | | - | |
| 9822 | + | |
| 9823 | + | |
| 9824 | + | |
| 9825 | + | |
| 9826 | + | |
| 9827 | + | |
| 9828 | + | |
9833 | 9829 | | |
9834 | | - | |
9835 | | - | |
9836 | | - | |
9837 | | - | |
| 9830 | + | |
| 9831 | + | |
| 9832 | + | |
9838 | 9833 | | |
9839 | 9834 | | |
9840 | 9835 | | |
| |||
9924 | 9919 | | |
9925 | 9920 | | |
9926 | 9921 | | |
9927 | | - | |
9928 | | - | |
9929 | | - | |
9930 | | - | |
9931 | | - | |
| 9922 | + | |
| 9923 | + | |
| 9924 | + | |
| 9925 | + | |
| 9926 | + | |
| 9927 | + | |
| 9928 | + | |
| 9929 | + | |
| 9930 | + | |
| 9931 | + | |
9932 | 9932 | | |
9933 | 9933 | | |
9934 | 9934 | | |
| |||
9937 | 9937 | | |
9938 | 9938 | | |
9939 | 9939 | | |
9940 | | - | |
9941 | | - | |
9942 | | - | |
9943 | | - | |
9944 | | - | |
| 9940 | + | |
| 9941 | + | |
| 9942 | + | |
| 9943 | + | |
| 9944 | + | |
| 9945 | + | |
| 9946 | + | |
9945 | 9947 | | |
9946 | 9948 | | |
9947 | 9949 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
312 | | - | |
| 310 | + | |
| 311 | + | |
313 | 312 | | |
314 | 313 | | |
315 | 314 | | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
319 | | - | |
| 318 | + | |
320 | 319 | | |
321 | 320 | | |
322 | 321 | | |
323 | 322 | | |
324 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
325 | 336 | | |
326 | | - | |
| 337 | + | |
327 | 338 | | |
328 | 339 | | |
329 | 340 | | |
| |||
337 | 348 | | |
338 | 349 | | |
339 | 350 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | 351 | | |
345 | 352 | | |
346 | | - | |
| 353 | + | |
347 | 354 | | |
348 | 355 | | |
349 | 356 | | |
| |||
405 | 412 | | |
406 | 413 | | |
407 | 414 | | |
| 415 | + | |
408 | 416 | | |
| 417 | + | |
409 | 418 | | |
410 | 419 | | |
411 | 420 | | |
| |||
1638 | 1647 | | |
1639 | 1648 | | |
1640 | 1649 | | |
1641 | | - | |
1642 | | - | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
1643 | 1654 | | |
1644 | 1655 | | |
1645 | 1656 | | |
| |||
0 commit comments