Skip to content
Snippets Groups Projects
  • NeilBrown's avatar
    8a3e5975
    llist: add llist_del_first_this() · 8a3e5975
    NeilBrown authored
    
    llist_del_first_this() deletes a specific entry from an llist, providing
    it is at the head of the list.  Multiple threads can call this
    concurrently providing they each offer a different entry.
    
    This can be uses for a set of worker threads which are on the llist when
    they are idle.  The head can always be woken, and when it is woken it
    can remove itself, and possibly wake the next if there is an excess of
    work to do.
    
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    8a3e5975
    History
    llist: add llist_del_first_this()
    NeilBrown authored
    
    llist_del_first_this() deletes a specific entry from an llist, providing
    it is at the head of the list.  Multiple threads can call this
    concurrently providing they each offer a different entry.
    
    This can be uses for a set of worker threads which are on the llist when
    they are idle.  The head can always be woken, and when it is woken it
    can remove itself, and possibly wake the next if there is an excess of
    work to do.
    
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>