fc.c (b70366e5d31788650b2a5cec5cd13ea80ac7e44a) fc.c (f363b089be0a39fe4282c688118a51d21f952bc7)
1/*
2 * Copyright (c) 2016 Avago Technologies. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful.

--- 1934 unchanged lines hidden (view full) ---

1943 error = nvme_error_status(rq->errors);
1944 }
1945
1946 nvme_fc_ctrl_put(ctrl);
1947
1948 blk_mq_end_request(rq, error);
1949}
1950
1/*
2 * Copyright (c) 2016 Avago Technologies. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful.

--- 1934 unchanged lines hidden (view full) ---

1943 error = nvme_error_status(rq->errors);
1944 }
1945
1946 nvme_fc_ctrl_put(ctrl);
1947
1948 blk_mq_end_request(rq, error);
1949}
1950
1951static struct blk_mq_ops nvme_fc_mq_ops = {
1951static const struct blk_mq_ops nvme_fc_mq_ops = {
1952 .queue_rq = nvme_fc_queue_rq,
1953 .complete = nvme_fc_complete_rq,
1954 .init_request = nvme_fc_init_request,
1955 .exit_request = nvme_fc_exit_request,
1956 .reinit_request = nvme_fc_reinit_request,
1957 .init_hctx = nvme_fc_init_hctx,
1958 .poll = nvme_fc_poll,
1959 .timeout = nvme_fc_timeout,
1960};
1961
1952 .queue_rq = nvme_fc_queue_rq,
1953 .complete = nvme_fc_complete_rq,
1954 .init_request = nvme_fc_init_request,
1955 .exit_request = nvme_fc_exit_request,
1956 .reinit_request = nvme_fc_reinit_request,
1957 .init_hctx = nvme_fc_init_hctx,
1958 .poll = nvme_fc_poll,
1959 .timeout = nvme_fc_timeout,
1960};
1961
1962static struct blk_mq_ops nvme_fc_admin_mq_ops = {
1962static const struct blk_mq_ops nvme_fc_admin_mq_ops = {
1963 .queue_rq = nvme_fc_queue_rq,
1964 .complete = nvme_fc_complete_rq,
1965 .init_request = nvme_fc_init_admin_request,
1966 .exit_request = nvme_fc_exit_request,
1967 .reinit_request = nvme_fc_reinit_request,
1968 .init_hctx = nvme_fc_init_admin_hctx,
1969 .timeout = nvme_fc_timeout,
1970};

--- 603 unchanged lines hidden ---
1963 .queue_rq = nvme_fc_queue_rq,
1964 .complete = nvme_fc_complete_rq,
1965 .init_request = nvme_fc_init_admin_request,
1966 .exit_request = nvme_fc_exit_request,
1967 .reinit_request = nvme_fc_reinit_request,
1968 .init_hctx = nvme_fc_init_admin_hctx,
1969 .timeout = nvme_fc_timeout,
1970};

--- 603 unchanged lines hidden ---