|
5 | 5 | import urllib
|
6 | 6 | import re
|
7 | 7 |
|
8 |
| -from framework.utils import compare_versions, is_io_uring_supported, run_cmd |
| 8 | +from framework.utils import compare_versions, run_cmd |
9 | 9 | from framework.defs import API_USOCKET_URL_PREFIX
|
10 | 10 |
|
11 | 11 |
|
@@ -164,27 +164,16 @@ class Drive:
|
164 | 164 |
|
165 | 165 | DRIVE_CFG_RESOURCE = "drives"
|
166 | 166 |
|
167 |
| - def __init__(self, api_usocket_full_name, api_session, firecracker_version): |
| 167 | + def __init__(self, api_usocket_full_name, api_session): |
168 | 168 | """Specify the information needed for sending API requests."""
|
169 | 169 | url_encoded_path = urllib.parse.quote_plus(api_usocket_full_name)
|
170 | 170 | api_url = API_USOCKET_URL_PREFIX + url_encoded_path + "/"
|
171 | 171 |
|
172 | 172 | self._drive_cfg_url = api_url + self.DRIVE_CFG_RESOURCE
|
173 | 173 | self._api_session = api_session
|
174 |
| - self._firecracker_version = firecracker_version |
175 | 174 |
|
176 | 175 | def put(self, **args):
|
177 | 176 | """Attach a block device or update the details of a previous one."""
|
178 |
| - # Default the io engine to Async on kernels > 5.10 so that we |
179 |
| - # make sure to exercise both Sync and Async behaviour in the CI. |
180 |
| - # Also check the FC version to make sure that it has support for |
181 |
| - # configurable io_engine. |
182 |
| - if ( |
183 |
| - is_io_uring_supported() |
184 |
| - and compare_versions(self._firecracker_version, "0.25.0") > 0 |
185 |
| - and ("io_engine" not in args or args["io_engine"] is None) |
186 |
| - ): |
187 |
| - args["io_engine"] = "Async" |
188 | 177 |
|
189 | 178 | datax = self.create_json(**args)
|
190 | 179 |
|
|
0 commit comments