lkml.org 
[lkml]   [2026]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC v2 01/23] fs: notice when init abandons fs sharing
> +struct fs_struct *switch_fs_struct(struct fs_struct *new_fs)
> +{
> + struct fs_struct *fs;
> +
> + fs = current->fs;
> + read_seqlock_excl(&fs->seq);
> + current->fs = new_fs;
> + if (--fs->users)
> + new_fs = NULL;
> + else
> + new_fs = fs;
> + read_sequnlock_excl(&fs->seq);
> +
> + nullfs_userspace_init(fs);

This is called under task_lock() and nullfs_userspace_init() may sleep.
Oversight on my part.

\
 
 \ /
  Last update: 2026-03-10 17:07    [W:0.242 / U:0.415 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog