Commit 7dbcbe88 authored by Pete Zaitcev's avatar Pete Zaitcev Committed by Greg Kroah-Hartman

ub: remove sg_stat

Remove forgotten code related to sg_stat[].
Signed-off-by: default avatarPete Zaitcev <zaitcev@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6a2839be
...@@ -349,8 +349,6 @@ struct ub_dev { ...@@ -349,8 +349,6 @@ struct ub_dev {
struct work_struct reset_work; struct work_struct reset_work;
wait_queue_head_t reset_wait; wait_queue_head_t reset_wait;
int sg_stat[6];
}; };
/* /*
...@@ -685,7 +683,6 @@ static int ub_request_fn_1(struct ub_lun *lun, struct request *rq) ...@@ -685,7 +683,6 @@ static int ub_request_fn_1(struct ub_lun *lun, struct request *rq)
goto drop; goto drop;
} }
urq->nsg = n_elem; urq->nsg = n_elem;
sc->sg_stat[n_elem < 5 ? n_elem : 5]++;
if (blk_pc_request(rq)) { if (blk_pc_request(rq)) {
ub_cmd_build_packet(sc, lun, cmd, urq); ub_cmd_build_packet(sc, lun, cmd, urq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment