Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b03dfdec authored by Jeff Layton's avatar Jeff Layton
Browse files

locks: add __acquires and __releases annotations to locks_start and locks_stop



...to make sparse happy.

Acked-by: default avatarJ. Bruce Fields <bfields@fieldses.org>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
parent 6ca10ed8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2430,6 +2430,7 @@ static int locks_show(struct seq_file *f, void *v)
}

static void *locks_start(struct seq_file *f, loff_t *pos)
	__acquires(&blocked_lock_lock)
{
	struct locks_iterator *iter = f->private;

@@ -2448,6 +2449,7 @@ static void *locks_next(struct seq_file *f, void *v, loff_t *pos)
}

static void locks_stop(struct seq_file *f, void *v)
	__releases(&blocked_lock_lock)
{
	spin_unlock(&blocked_lock_lock);
	lg_global_unlock(&file_lock_lglock);