On Fri, 2013-06-28 at 14:54 +0200, Bart Van Assche wrote:
> Finish all outstanding I/O requests after fast_io_fail_tmo expired,
> which speeds up failover in a multipath setup. This patch is a
> reworked version of a patch from Sebastian Riemer.
> -static void srp_reset_req(struct srp_target_port *target, struct srp_request
> *req)
> +static void srp_finish_req(struct srp_target_port *target,
> + struct srp_request *req, int result)
> {
> struct scsi_cmnd *scmnd = srp_claim_req(target, req, NULL);
>
> if (scmnd) {
> srp_free_req(target, req, scmnd, 0);
> - scmnd->result = DID_RESET << 16;
> + scmnd->result = result;
Rather than have all the callers do the shift, just have
srp_finish_req() do it.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html