Skip to content

Commit

Permalink
Try #1405:
Browse files Browse the repository at this point in the history
  • Loading branch information
mayastor-bors committed Jun 9, 2023
2 parents 6265776 + 537ac2f commit b7b1174
Show file tree
Hide file tree
Showing 12 changed files with 895 additions and 483 deletions.
2 changes: 1 addition & 1 deletion io-engine/src/bdev/nexus/nexus_bdev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ impl<'n> Nexus<'n> {
let (sender, recv) = oneshot::channel::<ChannelTraverseStatus>();

self.traverse_io_channels(
sender,
|chan, _sender| -> ChannelTraverseStatus {
chan.reconnect_all();
ChannelTraverseStatus::Ok
Expand All @@ -599,7 +600,6 @@ impl<'n> Nexus<'n> {
debug!("{self:?}: all I/O channels reconfigured");
sender.send(status).expect("reconfigure channel gone");
},
sender,
);

let result = recv.await.expect("reconfigure sender already dropped");
Expand Down
4 changes: 2 additions & 2 deletions io-engine/src/bdev/nexus/nexus_bdev_children.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,12 +838,12 @@ impl<'n> Nexus<'n> {
// and the I/O would end up logged.
if has_io_log {
self.traverse_io_channels(
(),
|chan, _| {
chan.reconnect_io_logs();
ChannelTraverseStatus::Ok
},
|_, _| {},
(),
);

c.io_log_channel()
Expand Down Expand Up @@ -1048,9 +1048,9 @@ impl<'n> Nexus<'n> {
);

self.traverse_io_channels(
ctx,
update_failfast_cb,
update_failfast_done,
ctx,
);

r.await
Expand Down
Loading

0 comments on commit b7b1174

Please sign in to comment.