Commit def9b848 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

evl/xbuf: unblock waiters on release


Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent b9f63a82
......@@ -571,9 +571,19 @@ static __poll_t xbuf_oob_poll(struct file *filp,
return ready;
}
static int xbuf_release(struct inode *inode, struct file *filp)
{
struct evl_xbuf *xbuf = element_of(filp, struct evl_xbuf);
evl_flush_flag(&xbuf->obnd.i_event, T_RMID);
evl_flush_flag(&xbuf->ibnd.o_event, T_RMID);
return evl_release_element(inode, filp);
}
static const struct file_operations xbuf_fops = {
.open = evl_open_element,
.release = evl_release_element,
.release = xbuf_release,
.unlocked_ioctl = xbuf_ioctl,
.read = xbuf_read,
.write = xbuf_write,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment