Re: [Nbd] [PATCH 3/3]nbd: make nbd device wait for its users

2016-06-29 Thread Pranay Srivastava
Hi On Wed, Jun 29, 2016 at 12:36 PM, Markus Pargmann wrote: > Hi, > > On Friday 24 June 2016 13:09:36 Pranay Kr. Srivastava wrote: >> When a timeout occurs or a recv fails, then >> instead of abruplty killing nbd block device >> wait for it's users to finish. >> >> This is more required when file

Re: [Nbd] [PATCH 3/3]nbd: make nbd device wait for its users

2016-06-29 Thread Markus Pargmann
Hi, On Friday 24 June 2016 13:09:36 Pranay Kr. Srivastava wrote: > When a timeout occurs or a recv fails, then > instead of abruplty killing nbd block device > wait for it's users to finish. > > This is more required when filesystem(s) like > ext2 or ext3 don't expect their buffer heads to > disa

Re: [Nbd] [PATCH 3/3]nbd: make nbd device wait for its users

2016-06-25 Thread Pranay Srivastava
Hi On Fri, Jun 24, 2016 at 3:39 PM, Pranay Kr. Srivastava wrote: > When a timeout occurs or a recv fails, then > instead of abruplty killing nbd block device > wait for it's users to finish. > > This is more required when filesystem(s) like > ext2 or ext3 don't expect their buffer heads to > disa

Re: [Nbd] [PATCH 3/3]nbd: make nbd device wait for its users

2016-06-25 Thread Pranay Srivastava
Hi Eric, On Fri, Jun 24, 2016 at 7:12 PM, Eric Blake wrote: > On 06/24/2016 04:09 AM, Pranay Kr. Srivastava wrote: >> When a timeout occurs or a recv fails, then >> instead of abruplty killing nbd block device > > s/abruplty/abruptly/ > >> wait for it's users to finish. > > s/it's/its/ > >> >> Th

Re: [Nbd] [PATCH 3/3]nbd: make nbd device wait for its users

2016-06-24 Thread Eric Blake
On 06/24/2016 04:09 AM, Pranay Kr. Srivastava wrote: > When a timeout occurs or a recv fails, then > instead of abruplty killing nbd block device s/abruplty/abruptly/ > wait for it's users to finish. s/it's/its/ > > This is more required when filesystem(s) like > ext2 or ext3 don't expect thei

[Nbd] [PATCH 3/3]nbd: make nbd device wait for its users

2016-06-24 Thread Pranay Kr. Srivastava
When a timeout occurs or a recv fails, then instead of abruplty killing nbd block device wait for it's users to finish. This is more required when filesystem(s) like ext2 or ext3 don't expect their buffer heads to disappear while the filesystem is mounted. Each open of a nbd device is refcounted,