Commit 6417786
committed
example(uffd): handle EAGAIN from UFFDIO_ZEROPAGE
If a remove event is pending to be read from the uffd, then all uffdio
ioctls return EAGAIN. We correctly handle this for COPY, but did not for
ZEROPAGE. Also handle this for zeropage to fix spurious test failures.
See commit e92a7ff ("fix(example): correctly handle `remove` events
in uffd exammple") for more details.
Signed-off-by: Patrick Roy <[email protected]>1 parent 0e1eb81 commit 6417786
1 file changed
+12
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
| |||
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
| |||
0 commit comments