flexnbd: Remove the server I/O lock as it no longer has any consumers

This commit is contained in:
nick
2013-09-23 10:29:06 +01:00
parent 9a3106f946
commit 150e506780
4 changed files with 4 additions and 39 deletions

View File

@@ -231,8 +231,9 @@ static const int mirror_maximum_passes = 7;
/* This must not be called if there's any chance of further I/O. Methods to
* ensure this include:
* - call server_lock_io()
* - call server_forbid_new_clients() followed by a successful server_close_clients() ; server_join_clients()
* - Ensure image size is 0
* - call server_forbid_new_clients() followed by a successful
* server_close_clients() ; server_join_clients()
*/
void mirror_on_exit( struct server * serve )
{
@@ -281,8 +282,6 @@ void mirror_cleanup( struct server * serve,
close( mirror->client );
}
mirror->client = -1;
if( server_io_locked( serve ) ){ server_unlock_io( serve ); }
}