|
@@ -1391,11 +1391,10 @@ int __break_lease(struct inode *inode, unsigned int mode, unsigned int type)
|
|
|
|
|
|
restart:
|
|
restart:
|
|
break_time = flock->fl_break_time;
|
|
break_time = flock->fl_break_time;
|
|
- if (break_time != 0) {
|
|
|
|
|
|
+ if (break_time != 0)
|
|
break_time -= jiffies;
|
|
break_time -= jiffies;
|
|
- if (break_time == 0)
|
|
|
|
- break_time++;
|
|
|
|
- }
|
|
|
|
|
|
+ if (break_time == 0)
|
|
|
|
+ break_time++;
|
|
locks_insert_block(flock, new_fl);
|
|
locks_insert_block(flock, new_fl);
|
|
spin_unlock(&inode->i_lock);
|
|
spin_unlock(&inode->i_lock);
|
|
error = wait_event_interruptible_timeout(new_fl->fl_wait,
|
|
error = wait_event_interruptible_timeout(new_fl->fl_wait,
|