git: fa30bff5da31 - main - LinuxKPI: IRQ work add TASKQUEUE_FAIL_IF_PENDING flag to taskqueue_enqueue
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 17 May 2022 12:11:38 UTC
The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=fa30bff5da319304f534aba747befe686fa2071a commit fa30bff5da319304f534aba747befe686fa2071a Author: Vladimir Kondratyev <wulf@FreeBSD.org> AuthorDate: 2022-05-17 12:10:20 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2022-05-17 12:10:20 +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 --- 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 d5b211248de3..8a0475c8999e 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