Re: [Xen-devel] [PATCH 2/2] xen: dont try setting max grants multiple times

2017-09-22 Thread Juergen Gross
On 20/09/17 17:00, Anthony PERARD wrote: > On Tue, Sep 19, 2017 at 01:50:55PM +0200, Juergen Gross wrote: >> Trying to call xengnttab_set_max_grants() with the same file handle >> might fail on some kernels, as this operation is allowed only once. >> >> This is a problem for the qdisk backend as bl

Re: [Xen-devel] [PATCH 2/2] xen: dont try setting max grants multiple times

2017-09-20 Thread Anthony PERARD
On Tue, Sep 19, 2017 at 01:50:55PM +0200, Juergen Gross wrote: > Trying to call xengnttab_set_max_grants() with the same file handle > might fail on some kernels, as this operation is allowed only once. > > This is a problem for the qdisk backend as blk_connect() can be > called multiple times for

[Xen-devel] [PATCH 2/2] xen: dont try setting max grants multiple times

2017-09-19 Thread Juergen Gross
Trying to call xengnttab_set_max_grants() with the same file handle might fail on some kernels, as this operation is allowed only once. This is a problem for the qdisk backend as blk_connect() can be called multiple times for a domain, e.g. in case grub-xen is being used to boot it. So instead of