lkml.org 
[lkml]   [2019]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next 2/3] xen-netback: switch state to InitWait at the end of netback_probe()...
On Tue, Dec 17, 2019 at 01:32:17PM +0000, Paul Durrant wrote:
> ...as the comment above the function states.
>
> The switch to Initialising at the start of the function is somewhat bogus
> as the toolstack will have set that initial state anyway. To behave
> correctly, a backend should switch to InitWait once it has set up all
> xenstore values that may be required by a initialising frontend. This
> patch calls backend_switch_state() to make the transition at the
> appropriate point.
>
> NOTE: backend_switch_state() ignores errors from xenbus_switch_state()
> and so this patch removes an error path from netback_probe(). This
> means a failure to change state at this stage (in the absence of
> other failures) will leave the device instantiated. This is highly
> unlikley to happen as a failure to change state would indicate a
> failure to write to xenstore, and that will trigger other error
> paths. Also, a 'stuck' device can still be cleaned up using 'unbind'
> in any case.
>
> Signed-off-by: Paul Durrant <pdurrant@amazon.com>

Acked-by: Wei Liu <wei.liu@kernel.org>

\
 
 \ /
  Last update: 2019-12-17 16:24    [W:0.118 / U:0.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site