[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1586257192-58369-2-git-send-email-zhe.he@windriver.com>
Date: Tue, 7 Apr 2020 18:59:52 +0800
From: <zhe.he@...driver.com>
To: <viro@...iv.linux.org.uk>, <axboe@...nel.dk>, <bcrl@...ck.org>,
<linux-fsdevel@...r.kernel.org>, <linux-aio@...ck.org>,
<linux-kernel@...r.kernel.org>, <zhe.he@...driver.com>
Subject: [PATCH 2/2] aio: Update calling to eventfd_signal_count with righ parameter
From: He Zhe <zhe.he@...driver.com>
eventfd_signal_count has been changed to take eventfd context as
parameter. Update the calling accordingly.
Signed-off-by: He Zhe <zhe.he@...driver.com>
---
fs/aio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/aio.c b/fs/aio.c
index 5f3d3d8..c03c487 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1693,7 +1693,8 @@ static int aio_poll_wake(struct wait_queue_entry *wait, unsigned mode, int sync,
list_del(&iocb->ki_list);
iocb->ki_res.res = mangle_poll(mask);
req->done = true;
- if (iocb->ki_eventfd && eventfd_signal_count()) {
+ if (iocb->ki_eventfd &&
+ eventfd_signal_count(iocb->ki_eventfd)) {
iocb = NULL;
INIT_WORK(&req->work, aio_poll_put_work);
schedule_work(&req->work);
--
2.7.4
Powered by blists - more mailing lists