> On 26 Feb 2016, at 4:17 PM, Philip Guenther <guent...@gmail.com> wrote:
> 
> On Thu, Feb 25, 2016 at 3:42 AM, David Gwynne <da...@gwynne.id.au> wrote:
>> the gc is run from a task in the systq, so we dont need a flag to
>> serialise it. it is already serialised.
>> 
>> ok?
> 
> I have a TODO entry saying "instead of triggering the unp_gc task, set
> a per-thread flag and then do the unp_gc call before returning to
> userspace; still need unp_gc task for process/thread exit case?"
> 
> The idea is that if my process closing an fd is responsible for
> creating unp garbage, it should do the collection and get charged for
> the kernel time instead of pushing that work to the system.

why does the gc have to occur later (ie, in a task as it is now or near 
userret) instead of directly?

dlg

Reply via email to