Skip to content
Snippets Groups Projects
Commit 63eaa66d authored by Wesley W. Terpstra's avatar Wesley W. Terpstra Committed by Alessandro Rubini
Browse files

pcie-wb: Reduce the size of the critical section.

parent f14c9e5c
No related merge requests found
......@@ -220,12 +220,12 @@ static ssize_t char_aio_read(struct kiocb *iocb, const struct iovec *iov, unsign
}
context->sent = RING_POS(context->sent + len);
mutex_unlock(&context->mutex);
/* Wake-up polling descriptors */
wake_up_interruptible(&context->waitq);
kill_fasync(&context->fasync, SIGIO, POLL_OUT);
mutex_unlock(&context->mutex);
if (len == 0 && (filep->f_flags & O_NONBLOCK) != 0)
return -EAGAIN;
......@@ -260,12 +260,12 @@ static ssize_t char_aio_write(struct kiocb *iocb, const struct iovec *iov, unsig
/* Process buffers */
etherbone_process(context);
mutex_unlock(&context->mutex);
/* Wake-up polling descriptors */
wake_up_interruptible(&context->waitq);
kill_fasync(&context->fasync, SIGIO, POLL_IN);
mutex_unlock(&context->mutex);
if (len == 0 && (filep->f_flags & O_NONBLOCK) != 0)
return -EAGAIN;
......
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