Commit 2c7062e
committed
femu/zns: a zone taken out of service gives its resources back
The write-fault injector moves a zone to read only, and Offline moves it
on from there. Neither released what the state the zone was leaving held,
so an open and an active resource stayed counted for a zone that holds
nothing: with a limit configured, that many faults exhaust the namespace
for good, and the shutdown walk -- which finds the zone on no list -- ends
on an assertion that the open count reached zero. A zone read-write window
went the same way, cleared by the state change without being handed back.1 parent 0b82aa5 commit 2c7062e
1 file changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
934 | 934 | | |
935 | 935 | | |
936 | 936 | | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
937 | 961 | | |
938 | 962 | | |
939 | 963 | | |
| |||
992 | 1016 | | |
993 | 1017 | | |
994 | 1018 | | |
| 1019 | + | |
995 | 1020 | | |
996 | 1021 | | |
997 | 1022 | | |
| |||
1296 | 1321 | | |
1297 | 1322 | | |
1298 | 1323 | | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
1299 | 1333 | | |
1300 | 1334 | | |
1301 | 1335 | | |
| |||
0 commit comments