From: Jeff Layton Date: Wed, 25 Jul 2012 18:59:54 +0000 (-0400) Subject: cifs: ensure that we always do cifsFileInfo_get under the spinlock X-Git-Tag: v3.6-rc1~85^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=764a1b1acecedfe204cb2e80d8e2cc7c6df1b0b8;p=pandora-kernel.git cifs: ensure that we always do cifsFileInfo_get under the spinlock The readpages bug is a regression that was introduced in 6993f74a5. This also fixes a couple of similar bugs in the uncached read and write codepaths. Also, prevent this sort of thing in the future by having cifsFileInfo_get take the spinlock itself, and adding a _locked variant for use in places that are already holding the lock. The _put code has always done that so this makes for a less confusing interface. Cc: # 3.5.x Reviewed-by: Pavel Shilovsky Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed