lkml.org 
[lkml]   [2012]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: deferring __fput()
On Sat, Jun 23, 2012 at 09:57:55PM +0100, Al Viro wrote:

> 3) at that point task_work is equal in size (and layout, BTW) to rcu_head. So we can add it
> into the same union in struct file where we already have list_head and rcu_head. No space
> eaten up. fput() would, once the counter reaches 0, remove the file from list (the only
> place walking that list skips the ones with zero refcount anyway) and, if we are in a normal
> process, use task_work_add() to have __fput() done to it. If we are in kernel thread or
> atomic context, just move the sucker to global list and use schedule_work() to have said

Only that's probably s/atomic/interrupt/

> list emptied and everything in it fed to __fput().


\
 
 \ /
  Last update: 2012-06-24 00:01    [W:0.107 / U:22.588 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site