diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2008-05-06 11:33:11 -0500 |
---|---|---|
committer | Tom Tucker <tom@opengridcomputing.com> | 2008-05-19 07:33:44 -0500 |
commit | dbcd00eba99945acfc433508a58eadc5dcd18cad (patch) | |
tree | c9bd31141dc48b45819d153ead3d311a0db51e40 /net/sunrpc/xprt.c | |
parent | 0e7f011a19696cc25d68a8d6631fc6c5aa60a54c (diff) | |
download | kernel_samsung_tuna-dbcd00eba99945acfc433508a58eadc5dcd18cad.zip kernel_samsung_tuna-dbcd00eba99945acfc433508a58eadc5dcd18cad.tar.gz kernel_samsung_tuna-dbcd00eba99945acfc433508a58eadc5dcd18cad.tar.bz2 |
svcrdma: Fix race with dto_tasklet in svc_rdma_send
The svc_rdma_send function will attempt to reap SQ WR to make room for
a new request if it finds the SQ full. This function races with the
dto_tasklet that also reaps SQ WR. To avoid polling and arming the CQ
unnecessarily move the test_and_clear_bit of the RDMAXPRT_SQ_PENDING
flag and arming of the CQ to the sq_cq_reap function.
Refactor the rq_cq_reap function to match sq_cq_reap so that the
code is easier to follow.
Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Diffstat (limited to 'net/sunrpc/xprt.c')
0 files changed, 0 insertions, 0 deletions