Skip to content

Commit 3208167

Browse files
committed
Merge tag 'filelock-v5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux
Pull file locking fix from Jeff Layton: "Just a single, one-line patch to fix an inefficiency in the posix locking code that can lead to it doing more wakeups than necessary" * tag 'filelock-v5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux: locks: add locks_move_blocks in posix_lock_inode
2 parents ab5c60b + 5ef1596 commit 3208167

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/locks.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,7 @@ static int posix_lock_inode(struct inode *inode, struct file_lock *request,
12821282
if (!new_fl)
12831283
goto out;
12841284
locks_copy_lock(new_fl, request);
1285+
locks_move_blocks(new_fl, request);
12851286
request = new_fl;
12861287
new_fl = NULL;
12871288
locks_insert_lock_ctx(request, &fl->fl_list);

0 commit comments

Comments
 (0)