diff --git a/lustre/include/lustre_net.h b/lustre/include/lustre_net.h index ce3a7a7254f67854042adccfff7f8695df40ec69..515cd9e71bc4c1b670b75e3dfb77b4e61227fa01 100644 --- a/lustre/include/lustre_net.h +++ b/lustre/include/lustre_net.h @@ -638,6 +638,7 @@ static inline int ptlrpc_bulk_active (struct ptlrpc_bulk_desc *desc) #define PTLRPC_REPLY_EARLY 0x02 int ptlrpc_send_reply(struct ptlrpc_request *req, int flags); int ptlrpc_reply(struct ptlrpc_request *req); +int ptlrpc_send_error(struct ptlrpc_request *req, int difficult); int ptlrpc_error(struct ptlrpc_request *req); void ptlrpc_resend_req(struct ptlrpc_request *request); int ptlrpc_at_get_net_latency(struct ptlrpc_request *req); diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index cb5c4ef75ad55204fd07d317472ffc435fa0d313..97f502f82d45edf8a54f4f73d6997d78b3fdf5c2 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -1596,7 +1596,7 @@ target_send_reply_msg (struct ptlrpc_request *req, int rc, int fail_id) if (rc) { DEBUG_REQ(D_ERROR, req, "processing error (%d)", rc); req->rq_status = rc; - return (ptlrpc_error(req)); + return (ptlrpc_send_error(req, 1)); } else { DEBUG_REQ(D_NET, req, "sending reply"); } diff --git a/lustre/ptlrpc/niobuf.c b/lustre/ptlrpc/niobuf.c index f0e86c07e8ebf701d39a449c1ae038b01438a94a..3b640847680b59a170df53c4b89f4ed28e19f19f 100644 --- a/lustre/ptlrpc/niobuf.c +++ b/lustre/ptlrpc/niobuf.c @@ -417,7 +417,7 @@ int ptlrpc_reply (struct ptlrpc_request *req) return (ptlrpc_send_reply (req, 0)); } -int ptlrpc_error(struct ptlrpc_request *req) +int ptlrpc_send_error(struct ptlrpc_request *req, int may_be_difficult) { int rc; ENTRY; @@ -430,10 +430,15 @@ int ptlrpc_error(struct ptlrpc_request *req) req->rq_type = PTL_RPC_MSG_ERR; - rc = ptlrpc_send_reply(req, 0); + rc = ptlrpc_send_reply(req, may_be_difficult); RETURN(rc); } +int ptlrpc_error(struct ptlrpc_request *req) +{ + return ptlrpc_send_error(req, 0); +} + int ptl_send_rpc(struct ptlrpc_request *request, int noreply) { int rc; diff --git a/lustre/ptlrpc/ptlrpc_module.c b/lustre/ptlrpc/ptlrpc_module.c index 4f0e2a2a3ad4f8a0682a680d72358bf6e33e4a90..60eb510d28151111b5cfac625028751dfbd1957a 100644 --- a/lustre/ptlrpc/ptlrpc_module.c +++ b/lustre/ptlrpc/ptlrpc_module.c @@ -130,6 +130,7 @@ EXPORT_SYMBOL(ptlrpc_register_bulk); EXPORT_SYMBOL(ptlrpc_unregister_bulk); EXPORT_SYMBOL(ptlrpc_send_reply); EXPORT_SYMBOL(ptlrpc_reply); +EXPORT_SYMBOL(ptlrpc_send_error); EXPORT_SYMBOL(ptlrpc_error); EXPORT_SYMBOL(ptlrpc_resend_req); EXPORT_SYMBOL(ptl_send_rpc); diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 77febfa3404a319c5019d522913919aeb0213423..cfc8eba5105b5ef705e635fa3c7855b3e1e8fccd 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -7,8 +7,8 @@ set -e ONLY=${ONLY:-"$*"} -# bug number for skipped test: 13297 2108 9789 3637 9789 3561 12622 15528/2330 13310 10764 -ALWAYS_EXCEPT=${ALWAYS_EXCEPT:-"27u 42a 42b 42c 42d 45 51d 62 74b 75 $SANITY_EXCEPT" } +# bug number for skipped test: 13297 2108 9789 3637 9789 3561 12622 15528/2330 10764 +ALWAYS_EXCEPT=${ALWAYS_EXCEPT:-"27u 42a 42b 42c 42d 45 51d 62 75 $SANITY_EXCEPT" } # UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT! # Tests that fail on uml, maybe elsewhere, FIXME