X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fptlrpc%2Fclient.c;h=5833e802edc64ab57a9ed4a8c86232ebf04e43a3;hb=526e9c54f2113da0c1484e70791167f7d16cbf00;hp=78022824ba4695b51002e0d6795ab4e0600bb14c;hpb=0993ba6915f7f6529526eb1672a345a10b86a02d;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 7802282..5833e80 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -795,7 +795,11 @@ void ptlrpc_set_destroy(struct ptlrpc_request_set *set) cfs_atomic_dec(&set->set_remaining); } + cfs_spin_lock(&req->rq_lock); req->rq_set = NULL; + req->rq_invalid_rqset = 0; + cfs_spin_unlock(&req->rq_lock); + ptlrpc_req_finished (req); }