Revert poll exclusive
[lttng-modules.git] / ltt-debugfs-abi.c
index fb6c789f1e0da0f4aa32bba7775fb86d439b90f0..e3f5b55df1219bb2f9ae76313d6532d0bb712f9e 100644 (file)
@@ -564,10 +564,12 @@ unsigned int lttng_channel_poll(struct file *file, poll_table *wait)
        unsigned int mask = 0;
 
        if (file->f_mode & FMODE_READ) {
-               init_poll_funcptr(wait, wrapper_pollwait_exclusive);
+               poll_wait_set_exclusive(wait);
                poll_wait(file, channel->ops->get_hp_wait_queue(channel->chan),
                          wait);
 
+               if (channel->ops->is_disabled(channel->chan))
+                       return POLLERR;
                if (channel->ops->is_finalized(channel->chan))
                        return POLLHUP;
                else
This page took 0.026568 seconds and 4 git commands to generate.