From: Jeff Layton Date: Tue, 23 Sep 2008 01:33:33 +0000 (-0400) Subject: cifs: have find_writeable_file prefer filehandles opened by same task X-Git-Tag: v2.6.28-rc1~718^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2846d3864738dd6e290755d0692cf377e09ba79f;p=pandora-kernel.git cifs: have find_writeable_file prefer filehandles opened by same task When the CIFS client goes to write out pages, it needs to pick a filehandle to write to. find_writeable_file however just picks the first filehandle that it finds. This can cause problems when a lock is issued against a particular filehandle and we pick a different filehandle to write to. This patch tries to avert this situation by having find_writable_file prefer filehandles that have a pid that matches the current task. This seems to fix lock test 11 from the connectathon test suite when run against a windows server. Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed