Skip to content

Commit 369c367

Browse files
committed
Post-rebase fixes
1 parent 94edb60 commit 369c367

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

upstairs/src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5042,7 +5042,7 @@ impl UpstairsState {
50425042
* that happens on initial startup. This is because the running
50435043
* upstairs has some state it can use to re-verify a downstairs.
50445044
*/
5045-
async fn set_active(&mut self) -> Result<(), CrucibleError> {
5045+
fn set_active(&mut self) -> Result<(), CrucibleError> {
50465046
if self.up_state == UpState::Active {
50475047
crucible_bail!(UpstairsAlreadyActive);
50485048
} else if self.up_state == UpState::Deactivating {
@@ -5359,7 +5359,7 @@ impl Upstairs {
53595359
async fn set_active(&self) -> Result<(), CrucibleError> {
53605360
let mut active = self.active.lock().await;
53615361
self.stats.add_activation().await;
5362-
active.set_active().await?;
5362+
active.set_active()?;
53635363
info!(
53645364
self.log,
53655365
"{} is now active with session: {}", self.uuid, self.session_id
@@ -6614,7 +6614,7 @@ impl Upstairs {
66146614
* Verify the guest given gen number is highest.
66156615
* Decide if we need repair, and if so create the repair list
66166616
*/
6617-
async fn collate_downstairs(
6617+
fn collate_downstairs(
66186618
&self,
66196619
ds: &mut Downstairs,
66206620
) -> Result<bool, CrucibleError> {
@@ -6939,7 +6939,7 @@ impl Upstairs {
69396939
* downstairs out, forget any activation requests, and the
69406940
* upstairs goes back to waiting for another activation request.
69416941
*/
6942-
self.collate_downstairs(&mut ds).await
6942+
self.collate_downstairs(&mut ds)
69436943
};
69446944

69456945
match collate_status {
@@ -7048,7 +7048,7 @@ impl Upstairs {
70487048
for s in ds.ds_state.iter_mut() {
70497049
*s = DsState::Active;
70507050
}
7051-
active.set_active().await?;
7051+
active.set_active()?;
70527052
info!(
70537053
self.log,
70547054
"{} is now active with session: {}",
@@ -7084,7 +7084,7 @@ impl Upstairs {
70847084
for s in ds.ds_state.iter_mut() {
70857085
*s = DsState::Active;
70867086
}
7087-
active.set_active().await?;
7087+
active.set_active()?;
70887088
info!(
70897089
self.log,
70907090
"{} is now active with session: {}",
@@ -8822,7 +8822,7 @@ impl GtoS {
88228822
/*
88238823
* Notify corresponding BlockReqWaiter
88248824
*/
8825-
pub async fn notify(self, result: Result<(), CrucibleError>) {
8825+
pub fn notify(self, result: Result<(), CrucibleError>) {
88268826
/*
88278827
* If present, send the result to the guest. If this is a flush
88288828
* issued on behalf of crucible, then there is no place to send
@@ -8943,7 +8943,7 @@ impl GuestWork {
89438943
gtos_job.transfer().await;
89448944
}
89458945

8946-
gtos_job.notify(result).await;
8946+
gtos_job.notify(result);
89478947

89488948
self.completed.push(gw_id);
89498949
} else {

0 commit comments

Comments
 (0)