Date: Wed, 1 Jun 2022 21:51:53 GMT From: Vladimir Kondratyev <wulf@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: a3e1754f45bf - stable/13 - LinuxKPI: IRQ work add TASKQUEUE_FAIL_IF_PENDING flag to taskqueue_enqueue Message-ID: <202206012151.251LprJ8042903@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=a3e1754f45bf2258957d04609bf6c757b5b9c93a commit a3e1754f45bf2258957d04609bf6c757b5b9c93a Author: Vladimir Kondratyev <wulf@FreeBSD.org> AuthorDate: 2022-05-17 12:10:20 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2022-06-01 21:50:14 +0000 LinuxKPI: IRQ work add TASKQUEUE_FAIL_IF_PENDING flag to taskqueue_enqueue call to match Linux. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D35052 (cherry picked from commit fa30bff5da319304f534aba747befe686fa2071a) --- sys/compat/linuxkpi/common/include/linux/irq_work.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/irq_work.h b/sys/compat/linuxkpi/common/include/linux/irq_work.h index 7e5a8feb69e4..93fc687292f1 100644 --- a/sys/compat/linuxkpi/common/include/linux/irq_work.h +++ b/sys/compat/linuxkpi/common/include/linux/irq_work.h @@ -63,10 +63,8 @@ init_irq_work(struct irq_work *irqw, irq_work_func_t func) static inline bool irq_work_queue(struct irq_work *irqw) { - if(taskqueue_enqueue(linux_irq_work_tq, &irqw->irq_task) == 0) - return (true); - - return (false); + return (taskqueue_enqueue_flags(linux_irq_work_tq, &irqw->irq_task, + TASKQUEUE_FAIL_IF_PENDING) == 0); } static inline void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206012151.251LprJ8042903>