@@ -5042,7 +5042,7 @@ impl UpstairsState {
5042
5042
* that happens on initial startup. This is because the running
5043
5043
* upstairs has some state it can use to re-verify a downstairs.
5044
5044
*/
5045
- async fn set_active ( & mut self ) -> Result < ( ) , CrucibleError > {
5045
+ fn set_active ( & mut self ) -> Result < ( ) , CrucibleError > {
5046
5046
if self . up_state == UpState :: Active {
5047
5047
crucible_bail ! ( UpstairsAlreadyActive ) ;
5048
5048
} else if self . up_state == UpState :: Deactivating {
@@ -5359,7 +5359,7 @@ impl Upstairs {
5359
5359
async fn set_active ( & self ) -> Result < ( ) , CrucibleError > {
5360
5360
let mut active = self . active . lock ( ) . await ;
5361
5361
self . stats . add_activation ( ) . await ;
5362
- active. set_active ( ) . await ?;
5362
+ active. set_active ( ) ?;
5363
5363
info ! (
5364
5364
self . log,
5365
5365
"{} is now active with session: {}" , self . uuid, self . session_id
@@ -6614,7 +6614,7 @@ impl Upstairs {
6614
6614
* Verify the guest given gen number is highest.
6615
6615
* Decide if we need repair, and if so create the repair list
6616
6616
*/
6617
- async fn collate_downstairs (
6617
+ fn collate_downstairs (
6618
6618
& self ,
6619
6619
ds : & mut Downstairs ,
6620
6620
) -> Result < bool , CrucibleError > {
@@ -6939,7 +6939,7 @@ impl Upstairs {
6939
6939
* downstairs out, forget any activation requests, and the
6940
6940
* upstairs goes back to waiting for another activation request.
6941
6941
*/
6942
- self . collate_downstairs ( & mut ds) . await
6942
+ self . collate_downstairs ( & mut ds)
6943
6943
} ;
6944
6944
6945
6945
match collate_status {
@@ -7048,7 +7048,7 @@ impl Upstairs {
7048
7048
for s in ds. ds_state . iter_mut ( ) {
7049
7049
* s = DsState :: Active ;
7050
7050
}
7051
- active. set_active ( ) . await ?;
7051
+ active. set_active ( ) ?;
7052
7052
info ! (
7053
7053
self . log,
7054
7054
"{} is now active with session: {}" ,
@@ -7084,7 +7084,7 @@ impl Upstairs {
7084
7084
for s in ds. ds_state . iter_mut ( ) {
7085
7085
* s = DsState :: Active ;
7086
7086
}
7087
- active. set_active ( ) . await ?;
7087
+ active. set_active ( ) ?;
7088
7088
info ! (
7089
7089
self . log,
7090
7090
"{} is now active with session: {}" ,
@@ -8822,7 +8822,7 @@ impl GtoS {
8822
8822
/*
8823
8823
* Notify corresponding BlockReqWaiter
8824
8824
*/
8825
- pub async fn notify ( self , result : Result < ( ) , CrucibleError > ) {
8825
+ pub fn notify ( self , result : Result < ( ) , CrucibleError > ) {
8826
8826
/*
8827
8827
* If present, send the result to the guest. If this is a flush
8828
8828
* issued on behalf of crucible, then there is no place to send
@@ -8943,7 +8943,7 @@ impl GuestWork {
8943
8943
gtos_job. transfer ( ) . await ;
8944
8944
}
8945
8945
8946
- gtos_job. notify ( result) . await ;
8946
+ gtos_job. notify ( result) ;
8947
8947
8948
8948
self . completed . push ( gw_id) ;
8949
8949
} else {
0 commit comments