libmount: (monitor) remove unnecessary epoll EPOLLPRI
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
0250174654
commit
1d15c4b273
|
@ -412,7 +412,7 @@ int mnt_monitor_enable_userspace(struct libmnt_monitor *mn, int enable, const ch
|
||||||
|
|
||||||
me->type = MNT_MONITOR_TYPE_USERSPACE;
|
me->type = MNT_MONITOR_TYPE_USERSPACE;
|
||||||
me->opers = &userspace_opers;
|
me->opers = &userspace_opers;
|
||||||
me->events = EPOLLPRI | EPOLLIN;
|
me->events = EPOLLIN;
|
||||||
me->path = strdup(filename);
|
me->path = strdup(filename);
|
||||||
if (!me->path)
|
if (!me->path)
|
||||||
goto err;
|
goto err;
|
||||||
|
@ -524,7 +524,7 @@ int mnt_monitor_enable_kernel(struct libmnt_monitor *mn, int enable)
|
||||||
* that we have to drain initial event generated by EPOLLIN after
|
* that we have to drain initial event generated by EPOLLIN after
|
||||||
* epoll_ctl(ADD). See monitor_modify_epoll().
|
* epoll_ctl(ADD). See monitor_modify_epoll().
|
||||||
*/
|
*/
|
||||||
me->events = EPOLLPRI | EPOLLIN | EPOLLET;
|
me->events = EPOLLIN | EPOLLET;
|
||||||
|
|
||||||
me->type = MNT_MONITOR_TYPE_KERNEL;
|
me->type = MNT_MONITOR_TYPE_KERNEL;
|
||||||
me->opers = &kernel_opers;
|
me->opers = &kernel_opers;
|
||||||
|
@ -884,7 +884,7 @@ int __test_epoll(struct libmnt_test *ts, int argc, char *argv[], int cleanup)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
ev.events = EPOLLPRI | EPOLLIN;
|
ev.events = EPOLLIN;
|
||||||
ev.data.fd = fd;
|
ev.data.fd = fd;
|
||||||
|
|
||||||
rc = epoll_ctl(efd, EPOLL_CTL_ADD, fd, &ev);
|
rc = epoll_ctl(efd, EPOLL_CTL_ADD, fd, &ev);
|
||||||
|
|
Loading…
Reference in New Issue