[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140717.163745.14681252611762551.davem@davemloft.net>
Date: Thu, 17 Jul 2014 16:37:45 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: vfalico@...il.com
Cc: netdev@...r.kernel.org, j.vosburgh@...il.com, andy@...yhouse.net
Subject: Re: [PATCH net-next] bonding: destroy proc directory only after
all bonds are gone
From: Veaceslav Falico <vfalico@...il.com>
Date: Thu, 17 Jul 2014 12:04:08 +0200
> Currently we might arrive to bond_net_exit() with some bonds left (that
> were created while the module is unloading). We take care of that by
> destroying sysfs (the last possibility to add new bonds) and then
> destroying all the remaining bonds.
>
> However, we destroy the /proc/net/bonding directory before destroying those
> last bonds, and get a warning that we're trying to destroy a non-empty
> proc directory (containing /proc/net/bonding/bondX).
>
> Fix this by moving bond_destroy_proc_dir() after all the bonds are
> destroyed, so that we're sure that no bonds exist.
>
> CC: Jay Vosburgh <j.vosburgh@...il.com>
> CC: Andy Gospodarek <andy@...yhouse.net>
> Signed-off-by: Veaceslav Falico <vfalico@...il.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists