Commit accda73
committed
When issuing IO handle broken, missing devices and failures
Previously we would issue the IO and assume everything
is going according to plan, this meant in the case of
failure to issue IO, we would hang forever. For example
if the device is removed.
Now we check the return code of IoCallDriver(), and handle
both direct failures, or sync calls (instead of expected
async call).
This gives us a better chance of detecting ejected, removed
or failed devices.
Signed-off-by: Jorgen Lundman <lundman@lundman.net>1 parent 9d3c72a commit accda73
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
| 756 | + | |
| 757 | + | |
756 | 758 | | |
757 | 759 | | |
758 | 760 | | |
| |||
924 | 926 | | |
925 | 927 | | |
926 | 928 | | |
| 929 | + | |
927 | 930 | | |
928 | 931 | | |
929 | 932 | | |
| |||
937 | 940 | | |
938 | 941 | | |
939 | 942 | | |
940 | | - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
941 | 949 | | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
942 | 955 | | |
943 | 956 | | |
944 | 957 | | |
| |||
0 commit comments