Re: [PATCH RFC v2] configfs: don't lock the root inode in configfs_depend_item_unlocked()

From: Greg Kroah-Hartman

Date: Sun Nov 29 2026 - 07:49:31 EST


On Sun, Nov 29, 2026 at 09:38:55PM +0900, Haruka Amakawa via B4 Relay wrote:
> @@ -1103,17 +1105,19 @@ static int configfs_depend_prep(struct configfs_dirent *sd,
> return ret;
> }
>
> -static int configfs_do_depend_item(struct configfs_dirent *subsys_sd,
> - struct config_item *target)
> +/* Caller must hold configfs_dirent_lock. */
> +static int __configfs_do_depend_item(struct configfs_dirent *subsys_sd,
> + struct config_item *target)

Mark this with __must_hold() please.

thanks,

greg k-h