Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15287
b: refs/heads/master
c: fbbde0c
h: refs/heads/master
i:
  15285: 9eea9df
  15283: c5428f2
  15279: 3c606b8
v: v3
  • Loading branch information
Linus Torvalds committed Dec 22, 2005
1 parent 1ee3ba5 commit deee24f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 515432aa7ae75ea493099f38adc14a99436fa1ac
refs/heads/master: fbbde0c30943306ddb77d969df6be68ebc6dc265
3 changes: 2 additions & 1 deletion trunk/fs/nfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,8 @@ static int nfs_lock(struct file *filp, int cmd, struct file_lock *fl)
return -EINVAL;

/* No mandatory locks over NFS */
if ((inode->i_mode & (S_ISGID | S_IXGRP)) == S_ISGID)
if ((inode->i_mode & (S_ISGID | S_IXGRP)) == S_ISGID &&
fl->fl_type != F_UNLCK)
return -ENOLCK;

if (IS_GETLK(cmd))
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/preempt.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ do { \
#define preempt_enable() \
do { \
preempt_enable_no_resched(); \
barrier(); \
preempt_check_resched(); \
} while (0)

Expand Down

0 comments on commit deee24f

Please sign in to comment.