Skip to content

Commit 90edaba

Browse files
mayastor-borstiagolobocastro
mayastor-bors
andcommitted
Merge #1620
1620: fix(rebuild): connect the io log when detaching r=tiagolobocastro a=tiagolobocastro When we detach a device, ensure that the io logs are connected. This usually happens on the fault path, however this change ensures that this happens during the detach itself and thus hardening it against races. Co-authored-by: Tiago Castro <tiagolobocastro@gmail.com>
2 parents 71e5a32 + 86c1aea commit 90edaba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

io-engine/src/bdev/nexus/nexus_channel.rs

+6
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ impl<'n> NexusChannel<'n> {
237237
self.detached.push(t);
238238
}
239239

240+
// Since we've removed the device from the IO path, make sure we
241+
// reconnect the io logs in case we haven't done so yet.
242+
// Otherwise, a given channel might never see an error for this device
243+
// and will therefore not log the IOs until a reconnect_io_logs.
244+
self.reconnect_io_logs();
245+
240246
debug!("{self:?}: device '{device_name}' detached");
241247
}
242248

0 commit comments

Comments
 (0)