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

Commit 3c18ef81 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

fuse: optimize wake_up



Normally blocked_waitq will be inactive, so optimize this case.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent 722d2bea
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -379,7 +379,7 @@ __releases(fc->lock)
			fc->blocked = 0;
			fc->blocked = 0;


		/* Wake up next waiter, if any */
		/* Wake up next waiter, if any */
		if (!fc->blocked)
		if (!fc->blocked && waitqueue_active(&fc->blocked_waitq))
			wake_up(&fc->blocked_waitq);
			wake_up(&fc->blocked_waitq);


		if (fc->num_background == fc->congestion_threshold &&
		if (fc->num_background == fc->congestion_threshold &&