Subject: Re: [PATCH 2/8] netback: add module unload function

From: Stephen Hemminger <[email-masked]>
Date: Mon, 4 Mar 2013 13:58:31 -0800

On Fri, 15 Feb 2013 16:00:03 +0000
Wei Liu <[email-masked]> wrote:

> Enable users to unload netback module. Users should make sure there is not vif
> runnig.

Isn't it likely that some admin might be trying to cleanup or do shutdown and there
is an ordering problem. What happens if vif's are still running?

Why depend on users? You should allow it anytime and do refcounting and auto-destroy the vif's for them.