summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-01-21 05:22:22 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-01-21 05:22:22 +0000
commit916acab27383dcdb8ad38cf86d22d6dd5991dc7f (patch)
treeec117ad870bbe319109a03f4f148ae337592ae42 /sys/dev
parentc9f724356d8d08d2d00de2209642da64b6952de1 (diff)
Remove sr_crypto_finish_io - we can just call sr_scsi_done instead now.
ok krw@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/softraid_crypto.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/sys/dev/softraid_crypto.c b/sys/dev/softraid_crypto.c
index d253a5873ae..f31f88891c2 100644
--- a/sys/dev/softraid_crypto.c
+++ b/sys/dev/softraid_crypto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_crypto.c,v 1.105 2014/01/21 05:11:12 jsing Exp $ */
+/* $OpenBSD: softraid_crypto.c,v 1.106 2014/01/21 05:22:21 jsing Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Hans-Joerg Hoexer <hshoexer@openbsd.org>
@@ -96,7 +96,6 @@ int sr_crypto_rw(struct sr_workunit *);
int sr_crypto_dev_rw(struct sr_workunit *, struct sr_crypto_wu *);
void sr_crypto_done(struct sr_workunit *);
int sr_crypto_read(struct cryptop *);
-void sr_crypto_finish_io(struct sr_workunit *);
void sr_crypto_calculate_check_hmac_sha1(u_int8_t *, int,
u_int8_t *, int, u_char *);
void sr_crypto_hotplug(struct sr_discipline *, struct disk *, int);
@@ -1146,7 +1145,7 @@ sr_crypto_write(struct cryptop *crp)
/* fail io */
wu->swu_xs->error = XS_DRIVER_STUFFUP;
s = splbio();
- sr_crypto_finish_io(wu);
+ sr_scsi_done(wu->swu_dis, wu->swu_xs);
splx(s);
}
@@ -1209,27 +1208,10 @@ sr_crypto_done(struct sr_workunit *wu)
}
s = splbio();
- sr_crypto_finish_io(wu);
+ sr_scsi_done(wu->swu_dis, wu->swu_xs);
splx(s);
}
-void
-sr_crypto_finish_io(struct sr_workunit *wu)
-{
- struct sr_discipline *sd = wu->swu_dis;
- struct scsi_xfer *xs = wu->swu_xs;
-#ifdef SR_DEBUG
- struct sr_softc *sc = sd->sd_sc;
-#endif /* SR_DEBUG */
-
- splassert(IPL_BIO);
-
- DNPRINTF(SR_D_INTR, "%s: sr_crypto_finish_io: wu %x xs: %x\n",
- DEVNAME(sc), wu, xs);
-
- sr_scsi_done(sd, xs);
-}
-
int
sr_crypto_read(struct cryptop *crp)
{
@@ -1244,7 +1226,7 @@ sr_crypto_read(struct cryptop *crp)
wu->swu_xs->error = XS_DRIVER_STUFFUP;
s = splbio();
- sr_crypto_finish_io(wu);
+ sr_scsi_done(wu->swu_dis, wu->swu_xs);
splx(s);
return (0);