]> git.karo-electronics.de Git - linux-beck.git/commit
staging/lustre/clio: Do not allow group locks with gid 0
authorPatrick Farrell <paf@cray.com>
Mon, 2 Feb 2015 02:52:18 +0000 (21:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Feb 2015 09:32:34 +0000 (17:32 +0800)
commit431b567856875536c7f574f30cd870d758aa6c2f
treee2078bb913eaa75ef8bf5a631aa46b81db3d417b
parentc67587a74847a27965ca1c6a4362c3b39e9943e1
staging/lustre/clio: Do not allow group locks with gid 0

When a group lock with GID=0 is released (put_grouplock is
called), an assertion in cl_put_grouplock is hit.

We should not allow group lock requests with GID=0, instead
we should return -EINVAL.

Signed-off-by: Patrick Farrell <paf@cray.com>
Reviewed-on: http://review.whamcloud.com/12459
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5817
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: frank zago <fzago@cray.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/file.c