Re: [PATCH] xen-blkfront: don't make discard-alignment mandatory

2021-01-19 Thread Roger Pau Monné
On Tue, Jan 19, 2021 at 11:11:26AM +0100, Jürgen Groß wrote: > On 19.01.21 11:06, Roger Pau Monné wrote: > > On Tue, Jan 19, 2021 at 08:43:01AM +0100, Jürgen Groß wrote: > > > On 18.01.21 16:15, Roger Pau Monne wrote: > > > > Don't require the discard-alignment xenstore node to be present in > > >

Re: [PATCH] xen-blkfront: don't make discard-alignment mandatory

2021-01-19 Thread Jürgen Groß
On 19.01.21 11:06, Roger Pau Monné wrote: On Tue, Jan 19, 2021 at 08:43:01AM +0100, Jürgen Groß wrote: On 18.01.21 16:15, Roger Pau Monne wrote: Don't require the discard-alignment xenstore node to be present in order to correctly setup the feature. This can happen with versions of QEMU that

Re: [PATCH] xen-blkfront: don't make discard-alignment mandatory

2021-01-19 Thread Roger Pau Monné
On Tue, Jan 19, 2021 at 08:43:01AM +0100, Jürgen Groß wrote: > On 18.01.21 16:15, Roger Pau Monne wrote: > > Don't require the discard-alignment xenstore node to be present in > > order to correctly setup the feature. This can happen with versions of > > QEMU that only write the

Re: [PATCH] xen-blkfront: don't make discard-alignment mandatory

2021-01-18 Thread Jürgen Groß
On 18.01.21 16:15, Roger Pau Monne wrote: Don't require the discard-alignment xenstore node to be present in order to correctly setup the feature. This can happen with versions of QEMU that only write the discard-granularity but not the discard-alignment node. Assume discard-alignment is 0 if

[PATCH] xen-blkfront: don't make discard-alignment mandatory

2021-01-18 Thread Roger Pau Monne
Don't require the discard-alignment xenstore node to be present in order to correctly setup the feature. This can happen with versions of QEMU that only write the discard-granularity but not the discard-alignment node. Assume discard-alignment is 0 if not present. While there also fix the logic