Re: [PATCH V2] nbd: ref count the socks array

2017-02-16 Thread Josef Bacik
On Wed, 2017-02-08 at 10:05 -0500, Josef Bacik wrote: > In preparation for allowing seamless reconnects we need a way to make > sure that we don't free the socks array out from underneath > ourselves. > So a socks_ref counter in order to keep track of who is using the > socks > array, and only free

[PATCH V2] nbd: ref count the socks array

2017-02-08 Thread Josef Bacik
In preparation for allowing seamless reconnects we need a way to make sure that we don't free the socks array out from underneath ourselves. So a socks_ref counter in order to keep track of who is using the socks array, and only free it and change num_connections once our reference reduces to zero.