From nobody Tue May 17 12:11:38 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DF80F1AEE667; Tue, 17 May 2022 12:11:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L2ZjR47HKz3Q0R; Tue, 17 May 2022 12:11:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652789499; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SDAyRYUY7lNxVvwoLGHQC3NPr3YyvtICB+beijDrTeM=; b=SNkLmlDerqQg7o6idegA3iCTmt120QePTpf2IzwxGjVygPNNdYV3vU49/j9Xovep8szr+W aEAw699PMRQh8f69Z+0/Ens2u88FqBpHWv2QMqjYOubi7iL0cdD9fTcVQvGfmYyctiIUbN CsXCXTlUKGneDsQIeXQa48VWwtbwOnr2ipqzbuGxahVF9qw5F4Xl8SBXRYoJyMxydVSdXQ Vc/CnBb+wp5xhe2cIM6S2YJSgvKV/a2FiCS+/HNln1rRm6EQJbbfA0GVwCxPMsBWl2Tebw lUYM1SqaP6EQsJwW9aRlk+lRBjikqAwjTlMbtQGH9SapDSPRXbCumwxGuGuJYg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 20050144F7; Tue, 17 May 2022 12:11:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24HCBcDR093229; Tue, 17 May 2022 12:11:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24HCBcd0093228; Tue, 17 May 2022 12:11:38 GMT (envelope-from git) Date: Tue, 17 May 2022 12:11:38 GMT Message-Id: <202205171211.24HCBcd0093228@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: fa30bff5da31 - main - LinuxKPI: IRQ work add TASKQUEUE_FAIL_IF_PENDING flag to taskqueue_enqueue List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fa30bff5da319304f534aba747befe686fa2071a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652789499; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SDAyRYUY7lNxVvwoLGHQC3NPr3YyvtICB+beijDrTeM=; b=UgQckjgkUeaSmOGp36CZ5vUgmLGnTNpK1MrxbpD7ZKjV0v/dewYqX18FXVaYdUz7aVWmdg Ic3lKBtPkFc9ibh+RfRtsv1VCnjVjOuU7Ff81cdvKPKt92SYg6GN86vf7YmFR+BmCqNLVn pCwKe+3S2mBLH7GQt5AQjNwg8RGfi+D9CP3ztLWtwo0Xyv1mZynLdt3BJ2WQcW/59TcBbV 8qWGuLkp0wqdfYLtjWX6kAQtcFaF984AC8WlpYehDcXHMOtZg7+YxjONFIBky7hVF1BMTn G285Er209EYJ/NMFE9umUDKZRi5lx4vIEwqp4ZhoizaIw8DxK0R+qu5eQsuIDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652789499; a=rsa-sha256; cv=none; b=YiIXG2mZtoiE/HG42uAtjPMD155X8uLofYLPPEz6Uf89EuZKFHD89aY0+LN1c87JfeJf/b w8GkZDIDv0tMVcSeuanA6bgdU7Oyb89Iur3gZiBQ//StBE9I/mHmUdcYZeCb51m3zFHpfo kMiidZojkRa1IRuonKulWVHK7SU04TYioDCl7/IeTyjuYcRlTjRyiyH0oQGBskBN+LdzBq RWH/owrxs7WdrshwdYnCEC2n3W7SFcQlOKxdYiRm4dcWpxzKmJiR0G/EW+4ZC+0NTHoBm7 wNeFuI2v2yojGVCgMRaKYZHOARAGulGzsSYZKHANglsXx2Tl4L1ZS/MGTfv84g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=fa30bff5da319304f534aba747befe686fa2071a commit fa30bff5da319304f534aba747befe686fa2071a Author: Vladimir Kondratyev AuthorDate: 2022-05-17 12:10:20 +0000 Commit: Vladimir Kondratyev 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