Commit 9018ccc
Christoph Hellwig
aio: add a iocb refcount
This is needed to prevent races caused by the way the ->poll API works.
To avoid introducing overhead for other users of the iocbs we initialize
it to zero and only do refcount operations if it is non-zero in the
completion path.
Signed-off-by: Christoph Hellwig <[email protected]>
Tested-by: Avi Kivity <[email protected]>1 parent 7dda712 commit 9018ccc
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
1015 | 1017 | | |
1016 | 1018 | | |
1017 | 1019 | | |
| 1020 | + | |
1018 | 1021 | | |
1019 | 1022 | | |
1020 | 1023 | | |
| |||
1049 | 1052 | | |
1050 | 1053 | | |
1051 | 1054 | | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
1052 | 1064 | | |
1053 | 1065 | | |
1054 | 1066 | | |
| |||
1118 | 1130 | | |
1119 | 1131 | | |
1120 | 1132 | | |
1121 | | - | |
1122 | | - | |
1123 | 1133 | | |
1124 | 1134 | | |
1125 | 1135 | | |
| |||
1130 | 1140 | | |
1131 | 1141 | | |
1132 | 1142 | | |
1133 | | - | |
1134 | | - | |
| 1143 | + | |
1135 | 1144 | | |
1136 | 1145 | | |
1137 | 1146 | | |
| |||
0 commit comments