]> www.infradead.org Git - users/dwmw2/linux.git/commit
NFSD: Use set_bit(RQ_DROPME)
authorChuck Lever <chuck.lever@oracle.com>
Sat, 7 Jan 2023 15:15:35 +0000 (10:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:25 +0000 (16:19 +0200)
commit72906e8da982e651f0538d137edbb8defa6e98b7
tree8c21fafee8e5e0341031e4529097befef17d2b3b
parentd7cfba56fa75f06ca57afa469e44d4dbc284acbb
NFSD: Use set_bit(RQ_DROPME)

[ Upstream commit 5304930dbae82d259bcf7e5611db7c81e7a42eff ]

The premise that "Once an svc thread is scheduled and executing an
RPC, no other processes will touch svc_rqst::rq_flags" is false.
svc_xprt_enqueue() examines the RQ_BUSY flag in scheduled nfsd
threads when determining which thread to wake up next.

Fixes: 9315564747cb ("NFSD: Use only RQ_DROPME to signal the need to drop a reply")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsproc.c