• Tejun Heo's avatar
    cifs: use workqueue instead of slow-work · 9b646972
    Tejun Heo authored
    Workqueue can now handle high concurrency.  Use system_nrt_wq
    instead of slow-work.
    
    * Updated is_valid_oplock_break() to not call cifs_oplock_break_put()
      as advised by Steve French.  It might cause deadlock.  Instead,
      reference is increased after queueing succeeded and
      cifs_oplock_break() briefly grabs GlobalSMBSeslock before putting
      the cfile to make sure it doesn't put before the matching get is
      finished.
    
    * Anton Blanchard reported that cifs conversion was using now gone
      system_single_wq.  Use system_nrt_wq which provides non-reentrance
      guarantee which is enough and much better.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarSteve French <sfrench@samba.org>
    Cc: Anton Blanchard <anton@samba.org>
    9b646972
misc.c 21.8 KB