Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277023
b: refs/heads/master
c: 7f54492
h: refs/heads/master
i:
  277021: 50dc0c3
  277019: 265f47a
  277015: 7b92c51
  277007: 7fecc75
  276991: afef200
v: v3
  • Loading branch information
Linus Torvalds committed Dec 26, 2011
1 parent 39e4835 commit 052297a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 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: fae9dbb4b462d2c908186a47464c7a5299ee27a9
refs/heads/master: 7f54492fbca0074d7db117d7972a80347e0b40a5
2 changes: 1 addition & 1 deletion trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2700,7 +2700,7 @@ FIREWIRE SUBSYSTEM
M: Stefan Richter <stefanr@s5r6.in-berlin.de>
L: linux1394-devel@lists.sourceforge.net
W: http://ieee1394.wiki.kernel.org/
T: git git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6.git
T: git git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394.git
S: Maintained
F: drivers/firewire/
F: include/linux/firewire*.h
Expand Down
11 changes: 3 additions & 8 deletions trunk/fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,8 @@ int __break_lease(struct inode *inode, unsigned int mode)
int want_write = (mode & O_ACCMODE) != O_RDONLY;

new_fl = lease_alloc(NULL, want_write ? F_WRLCK : F_RDLCK);
if (IS_ERR(new_fl))
return PTR_ERR(new_fl);

lock_flocks();

Expand All @@ -1221,12 +1223,6 @@ int __break_lease(struct inode *inode, unsigned int mode)
if (fl->fl_owner == current->files)
i_have_this_lease = 1;

if (IS_ERR(new_fl) && !i_have_this_lease
&& ((mode & O_NONBLOCK) == 0)) {
error = PTR_ERR(new_fl);
goto out;
}

break_time = 0;
if (lease_break_time > 0) {
break_time = jiffies + lease_break_time * HZ;
Expand Down Expand Up @@ -1284,8 +1280,7 @@ int __break_lease(struct inode *inode, unsigned int mode)

out:
unlock_flocks();
if (!IS_ERR(new_fl))
locks_free_lock(new_fl);
locks_free_lock(new_fl);
return error;
}

Expand Down

0 comments on commit 052297a

Please sign in to comment.