Re: [PATCH v2 3/4] xen-blkback: check the number of iovecs before allocating a bios

2013-06-25 Thread Roger Pau Monné
On 24/06/13 15:28, Konrad Rzeszutek Wilk wrote: > On Sat, Jun 22, 2013 at 09:59:17AM +0200, Roger Pau Monne wrote: >> With the introduction of indirect segments we can receive requests >> with a number of segments bigger than the maximum number of allowed >> iovecs in a bios, so make sure that

Re: [PATCH v2 3/4] xen-blkback: check the number of iovecs before allocating a bios

2013-06-25 Thread Roger Pau Monné
On 24/06/13 15:28, Konrad Rzeszutek Wilk wrote: On Sat, Jun 22, 2013 at 09:59:17AM +0200, Roger Pau Monne wrote: With the introduction of indirect segments we can receive requests with a number of segments bigger than the maximum number of allowed iovecs in a bios, so make sure that blkback

Re: [PATCH v2 3/4] xen-blkback: check the number of iovecs before allocating a bios

2013-06-24 Thread Konrad Rzeszutek Wilk
On Sat, Jun 22, 2013 at 09:59:17AM +0200, Roger Pau Monne wrote: > With the introduction of indirect segments we can receive requests > with a number of segments bigger than the maximum number of allowed > iovecs in a bios, so make sure that blkback doesn't try to allocate a > bios with more

Re: [PATCH v2 3/4] xen-blkback: check the number of iovecs before allocating a bios

2013-06-24 Thread Konrad Rzeszutek Wilk
On Sat, Jun 22, 2013 at 09:59:17AM +0200, Roger Pau Monne wrote: With the introduction of indirect segments we can receive requests with a number of segments bigger than the maximum number of allowed iovecs in a bios, so make sure that blkback doesn't try to allocate a bios with more iovecs

[PATCH v2 3/4] xen-blkback: check the number of iovecs before allocating a bios

2013-06-22 Thread Roger Pau Monne
With the introduction of indirect segments we can receive requests with a number of segments bigger than the maximum number of allowed iovecs in a bios, so make sure that blkback doesn't try to allocate a bios with more iovecs than BIO_MAX_PAGES Signed-off-by: Roger Pau Monné Cc: Konrad

[PATCH v2 3/4] xen-blkback: check the number of iovecs before allocating a bios

2013-06-22 Thread Roger Pau Monne
With the introduction of indirect segments we can receive requests with a number of segments bigger than the maximum number of allowed iovecs in a bios, so make sure that blkback doesn't try to allocate a bios with more iovecs than BIO_MAX_PAGES Signed-off-by: Roger Pau Monné roger@citrix.com