]> www.infradead.org Git - users/jedix/linux-maple.git/commit
SUNRPC: xprt_complete_bc_request must also decrement the free slot count
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 26 Aug 2015 20:17:53 +0000 (14:17 -0600)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:46:01 +0000 (14:46 -0600)
commitaefbea48217a81d02934ed9ad21c7a117183ba4a
treec62fc716ae87a286a73f03b8ceb6ca51297955da
parent9464ce70bbda312efd566e470b6758da8aa3f94d
SUNRPC: xprt_complete_bc_request must also decrement the free slot count

[ Upstream commit 1980bd4d829a87ccd21b949f8a11ff1b426f5b0b ]

Calling xprt_complete_bc_request() effectively causes the slot to be allocated,
so it needs to decrement the backchannel free slot count as well.

Fixes: 0d2a970d0ae5 ("SUNRPC: Fix a backchannel race")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/backchannel_rqst.c