mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
Upgrade io-uring to v0.6
This commit is contained in:
parent
a0255ff919
commit
67f765f003
3 changed files with 7 additions and 5 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -1300,9 +1300,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "io-uring"
|
name = "io-uring"
|
||||||
version = "0.5.13"
|
version = "0.6.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "dd1e1a01cfb924fd8c5c43b6827965db394f5a3a16c599ce03452266e1cf984c"
|
checksum = "8b7b36074613a723279637061b40db993208908a94f10ccb14436ce735bc0f57"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.3.2",
|
"bitflags 1.3.2",
|
||||||
"libc",
|
"libc",
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ getrandom = "0.2"
|
||||||
hashbrown = { version = "0.13", default-features = false }
|
hashbrown = { version = "0.13", default-features = false }
|
||||||
hdrhistogram = "7"
|
hdrhistogram = "7"
|
||||||
hex = "0.4"
|
hex = "0.4"
|
||||||
io-uring = { version = "0.5", optional = true }
|
io-uring = { version = "0.6", optional = true }
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
metrics = { version = "0.20", optional = true }
|
metrics = { version = "0.20", optional = true }
|
||||||
|
|
|
||||||
|
|
@ -744,8 +744,10 @@ impl RawBufRing {
|
||||||
// can register, and unregister, the same way.
|
// can register, and unregister, the same way.
|
||||||
|
|
||||||
let res = CurrentRing::with(|ring| {
|
let res = CurrentRing::with(|ring| {
|
||||||
|
unsafe {
|
||||||
ring.submitter()
|
ring.submitter()
|
||||||
.register_buf_ring(self.ring_addr as _, self.ring_entries(), bgid)
|
.register_buf_ring(self.ring_addr as _, self.ring_entries(), bgid)
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// println!("{}:{}: res {:?}", file!(), line!(), res);
|
// println!("{}:{}: res {:?}", file!(), line!(), res);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue