[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150321.223637.2214520794734249959.davem@davemloft.net>
Date: Sat, 21 Mar 2015 22:36:37 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: maze@...gle.com
Cc: maheshb@...gle.com, j.vosburgh@...il.com, andy@...yhouse.net,
vfalico@...il.com, nikolay@...hat.com, netdev@...r.kernel.org,
edumazet@...gle.com
Subject: Re: [PATCH net-next v2 0/4] bonding work-queues, try_rtnl() &
notifications
From: Maciej Żenczykowski <maze@...gle.com>
Date: Sat, 21 Mar 2015 19:23:51 -0700
>> Someone has to do the work, and if the rtnl-owner does it we do not
>> incur all of the overhead the resubmission entails.
>
> Are you suggesting:
> - adding a global queue of (function pointer, long arg)
> - changing rtnl_unlock to iterate through the queue calling
> function(arg) before it actually releases the rtnl lock
> ?
Something like that.
> I guess at that point you could even have a generic method
>
> void asynch_call_under_rtnl(function, arg) {
> rtnl_callback_add_to_queue(function,arg)
> if (rtnl_try_lock())
> rtnl_unlock();
> }
Right.
--
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