X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-abi.c;h=724d4f428a412ac7d3f74a935ecf15e890bc720f;hb=12528a82c68296e003358cca0c35d269973780cf;hp=baaf34d31952a2b0db6b732fc0c580891a059b35;hpb=c50bdba26664558b966a324cd382bd2959f0444e;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index baaf34d3..724d4f42 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -30,12 +30,11 @@ #include #include #include +#include #include #include #include -#include #include -#include #include #include #include @@ -777,7 +776,6 @@ unsigned int lttng_metadata_ring_buffer_poll(struct file *filp, unsigned int mask = 0; if (filp->f_mode & FMODE_READ) { - poll_wait_set_exclusive(wait); poll_wait(filp, &stream->read_wait, wait); finalized = stream->finalized; @@ -1177,11 +1175,7 @@ int lttng_abi_open_metadata_stream(struct file *channel_file) goto notransport; } - if (!lttng_kref_get(&session->metadata_cache->refcount)) { - ret = -EOVERFLOW; - goto kref_error; - } - + kref_get(&session->metadata_cache->refcount); ret = lttng_abi_create_stream_fd(channel_file, stream_priv, <tng_metadata_ring_buffer_file_operations); if (ret < 0) @@ -1193,7 +1187,6 @@ int lttng_abi_open_metadata_stream(struct file *channel_file) fd_error: kref_put(&session->metadata_cache->refcount, metadata_cache_destroy); -kref_error: module_put(metadata_stream->transport->owner); notransport: kfree(metadata_stream); @@ -1510,7 +1503,6 @@ unsigned int lttng_channel_poll(struct file *file, poll_table *wait) unsigned int mask = 0; if (file->f_mode & FMODE_READ) { - poll_wait_set_exclusive(wait); poll_wait(file, channel->ops->get_hp_wait_queue(channel->chan), wait);