]> git.baikalelectronics.ru Git - kernel.git/commit
9p: do not overwrite return code when locking fails
authorDominique Martinet <dominique.martinet@cea.fr>
Fri, 6 Nov 2015 02:44:21 +0000 (18:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commit176f66ae3b8c2942eba0ca8b5f75d09f35fe4c20
treec2d662385ee821bc5d7cd4c4b88e2c1c06b55f76
parentb38aa2725875cfcd133f1a46eee8ef97ebd3f5c9
9p: do not overwrite return code when locking fails

If the remote locking fail, we run a local vfs unlock that should work and
return success to userland when we didn't actually lock at all.  We need
to tell the application that tried to lock that it didn't get it, not that
all went well.

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Cc: Ron Minnich <rminnich@sandia.gov>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/9p/vfs_file.c