mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
sigio: do a lockless check in funsetownlist
There is no need to grab the lock first to see if sigio is used, and it typically is not.
This commit is contained in:
parent
5f521d7ba7
commit
382172be68
1 changed files with 2 additions and 0 deletions
|
|
@ -942,6 +942,8 @@ funsetown(struct sigio **sigiop)
|
|||
{
|
||||
struct sigio *sigio;
|
||||
|
||||
if (*sigiop == NULL)
|
||||
return;
|
||||
SIGIO_LOCK();
|
||||
sigio = *sigiop;
|
||||
if (sigio == NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue