1,009 B
1,009 B
- The changes remove unnecessary generic type parameters from the
FileEngine
,AsyncFileEngine
, and related structures by directly using thePendingRequest
type, simplifying type signatures and improving code clarity. - Error handling is unified through the replacement of
UserDataError
withRequestError
that specifically carriesPendingRequest
information, ensuring consistent error propagation with request context. - The
WrappedUserData
struct is renamed toWrappedRequest
and directly embedsPendingRequest
, aligning terminology with the virtio block device’s request lifecycle and improving traceability. - Test code is updated to use
PendingRequest::default()
instead of placeholder()
types, ensuring type consistency and proper request initialization in all scenarios. - Code organization is improved by consolidating imports (e.g., merging
IO_URING_NUM_ENTRIES
andPendingRequest
imports) and removing redundant type parameters across async/sync I/O implementations.