Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320404
b: refs/heads/master
c: 96d6d59
h: refs/heads/master
v: v3
  • Loading branch information
J. Bruce Fields committed Jul 27, 2012
1 parent fba18a0 commit 53cef38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 3b6e2723f32de42028617f2c99b244ccd72cd959
refs/heads/master: 96d6d59ceaeaacba4088862f3c57fcd011f52832
11 changes: 5 additions & 6 deletions trunk/fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,12 +570,6 @@ static void locks_delete_lock(struct file_lock **thisfl_p)
fl->fl_next = NULL;
list_del_init(&fl->fl_link);

fasync_helper(0, fl->fl_file, 0, &fl->fl_fasync);
if (fl->fl_fasync != NULL) {
printk(KERN_ERR "locks_delete_lock: fasync == %p\n", fl->fl_fasync);
fl->fl_fasync = NULL;
}

if (fl->fl_nspid) {
put_pid(fl->fl_nspid);
fl->fl_nspid = NULL;
Expand Down Expand Up @@ -1150,6 +1144,11 @@ int lease_modify(struct file_lock **before, int arg)

f_delown(filp);
filp->f_owner.signum = 0;
fasync_helper(0, fl->fl_file, 0, &fl->fl_fasync);
if (fl->fl_fasync != NULL) {
printk(KERN_ERR "locks_delete_lock: fasync == %p\n", fl->fl_fasync);
fl->fl_fasync = NULL;
}
locks_delete_lock(before);
}
return 0;
Expand Down

0 comments on commit 53cef38

Please sign in to comment.