From: Jeff Layton Date: Tue, 26 Jul 2011 16:20:17 +0000 (-0400) Subject: cifs: simplify refcounting for oplock breaks X-Git-Tag: v3.1-rc1~96^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad635942c869ad8fc9af270d4998c42b4e978b32;p=pandora-kernel.git cifs: simplify refcounting for oplock breaks Currently, we take a sb->s_active reference and a cifsFileInfo reference when an oplock break workqueue job is queued. This is unnecessary and more complicated than it needs to be. Also as Al points out, deactivate_super has non-trivial locking implications so it's best to avoid that if we can. Instead, just cancel any pending oplock breaks for this filehandle synchronously in cifsFileInfo_put after taking it off the lists. That should ensure that this job doesn't outlive the structures it depends on. Reported-by: Al Viro Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed