Merge pull request #298 from versity/auke/double_unlock_dw_truncate

Fix double unlock in scoutfs_setattr data_wait error path
This commit is contained in:
Zach Brown
2026-05-04 09:52:29 -07:00
committed by GitHub

View File

@@ -549,6 +549,7 @@ retry:
goto out;
if (scoutfs_data_wait_found(&dw)) {
scoutfs_unlock(sb, lock, SCOUTFS_LOCK_WRITE);
lock = NULL;
/* XXX callee locks instead? */
inode_unlock(inode);