From: Jeff Layton Date: Fri, 25 Sep 2009 13:53:37 +0000 (-0400) Subject: cifs: fix locking and list handling code in cifs_open and its helper X-Git-Tag: v2.6.32-rc1~20^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3321b791b2e8897323f8c044a0c77ff25781381c;p=pandora-kernel.git cifs: fix locking and list handling code in cifs_open and its helper The patch to remove cifs_init_private introduced a locking imbalance. It didn't remove the leftover list addition code and the unlocking in that function. cifs_new_fileinfo does the list addition now, so there should be no need to do it outside of that function. pCifsInode will never be NULL, so we don't need to check for that. This patch also gets rid of the ugly locking and unlocking across function calls. Signed-off-by: Jeff Layton Acked-by: Steve French Signed-off-by: Steve French --- Reading git-diff-tree failed