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:
Mateusz Guzik 2016-08-10 15:24:15 +00:00
parent 5f521d7ba7
commit 382172be68
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303921

View File

@ -942,6 +942,8 @@ funsetown(struct sigio **sigiop)
{
struct sigio *sigio;
if (*sigiop == NULL)
return;
SIGIO_LOCK();
sigio = *sigiop;
if (sigio == NULL) {