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

Commit 49d2e05f authored by Richard Weinberger's avatar Richard Weinberger
Browse files

ubifs: Add comment on c->commit_sem



Every single time I come across that code, I get confused
because it looks like a possible dead lock.
Help myself by adding a comment.

Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 7e5471ce
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -317,6 +317,7 @@ static int make_reservation(struct ubifs_info *c, int jhead, int len)
	down_read(&c->commit_sem);
	err = reserve_space(c, jhead, len);
	if (!err)
		/* c->commit_sem will get released via finish_reservation(). */
		return 0;
	up_read(&c->commit_sem);