Commit 481dfb1
committed
blk/kernel : skip AIO thread for zero-sized devices
Sometimes devices can be 0-sized, where I/O is impossible.
This change skips _aio_start() in open() if the device size is 0. This avoids unnecessary AIO setup.
This issue was introduced in PR : ceph#60791
Signed-off-by: Jaya Prakash <[email protected]>1 parent 05ec90d commit 481dfb1
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
300 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
| |||
0 commit comments