Whamcloud - gitweb
LU-5817 clio: Do not allow group locks with gid 0 59/12459/4
authorPatrick Farrell <paf@cray.com>
Mon, 10 Nov 2014 07:39:29 +0000 (01:39 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Nov 2014 19:16:25 +0000 (19:16 +0000)
commita1307d41a3a6682f60c91df4b581f21fb2980265
tree097926d4b0cc36d58bd40474c09f95e487cc7f18
parent09974e3d70145343f10cccc8d12917814ccf2c8a
LU-5817 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.

Also fix random_group_id so it never returns gid==0.

Change-Id: I56e58791742809da5353a4d8dfbf3b80a22f3814
Signed-off-by: Patrick Farrell <paf@cray.com>
Reviewed-on: http://review.whamcloud.com/12459
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: frank zago <fzago@cray.com>
lustre/llite/file.c
lustre/utils/lfs.c