[sheepdog] [PATCH] sheep: call do_cluster_request from the main thread
    Liu Yuan 
    namei.unix at gmail.com
       
    Wed May 16 11:26:02 CEST 2012
    
    
  
On 05/16/2012 02:58 PM, Christoph Hellwig wrote:
> There are two problems with calling do_cluster_request from a work queue:
> 
> 1) sys->pending_list is expected to only be used from the main thread and
>    does not have any locking
> 2) the ->notify cluster driver metho is expected to be called from the
>    main thread
> 
> Simplify call do_cluster_request directly from process_request_queue instead
> of offloading it to a workqueue to fix this, and document the assumptions
> in the code.
> 
> Based on an earlier patch from Yunkai Zhang <qiushu.zyk at taobao.com>.
Applied, thanks.
Yuan
    
    
More information about the sheepdog
mailing list