Skip to content

Commit 5ef1596

Browse files
yangerkunjtlayton
authored andcommitted
locks: add locks_move_blocks in posix_lock_inode
We forget to call locks_move_blocks in posix_lock_inode when try to process same owner and different types. Signed-off-by: yangerkun <[email protected]> Signed-off-by: Jeff Layton <[email protected]>
1 parent 3d77e6a commit 5ef1596

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)