Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174637178
D60349.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D60349.diff
View Options
diff --git a/sys/cam/ata/ata_da.c b/sys/cam/ata/ata_da.c
--- a/sys/cam/ata/ata_da.c
+++ b/sys/cam/ata/ata_da.c
@@ -3010,7 +3010,7 @@
* extensive. Release the periph refcount taken in adastart()
* for each CCB.
*/
- cam_iosched_bio_complete(softc->cam_iosched, bp, done_ccb);
+ cam_iosched_bio_update_stats(softc->cam_iosched, bp, done_ccb);
xpt_release_ccb(done_ccb);
KASSERT(softc->refcount >= 1, ("adadone softc %p refcount %d", softc, softc->refcount));
softc->refcount--;
diff --git a/sys/cam/cam_iosched.h b/sys/cam/cam_iosched.h
--- a/sys/cam/cam_iosched.h
+++ b/sys/cam/cam_iosched.h
@@ -99,7 +99,7 @@
void cam_iosched_set_work_flags(struct cam_iosched_softc *isc, uint32_t flags);
void cam_iosched_clr_work_flags(struct cam_iosched_softc *isc, uint32_t flags);
void cam_iosched_trim_done(struct cam_iosched_softc *isc);
-int cam_iosched_bio_complete(struct cam_iosched_softc *isc, struct bio *bp, union ccb *done_ccb);
+int cam_iosched_bio_update_stats(struct cam_iosched_softc *isc, struct bio *bp, union ccb *done_ccb);
void cam_iosched_set_latfcn(struct cam_iosched_softc *isc, cam_iosched_latfcn_t, void *);
void cam_iosched_set_trim_goal(struct cam_iosched_softc *isc, int goal);
void cam_iosched_set_trim_ticks(struct cam_iosched_softc *isc, int ticks);
diff --git a/sys/cam/cam_iosched.c b/sys/cam/cam_iosched.c
--- a/sys/cam/cam_iosched.c
+++ b/sys/cam/cam_iosched.c
@@ -1771,7 +1771,7 @@
* might use notes in the ccb for statistics.
*/
int
-cam_iosched_bio_complete(struct cam_iosched_softc *isc, struct bio *bp,
+cam_iosched_bio_update_stats(struct cam_iosched_softc *isc, struct bio *bp,
union ccb *done_ccb)
{
int retval = 0;
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -1322,7 +1322,7 @@
* routine, which in the case of sendfile can be quite
* extensive.
*/
- cam_iosched_bio_complete(softc->cam_iosched, bp, done_ccb);
+ cam_iosched_bio_update_stats(softc->cam_iosched, bp, done_ccb);
xpt_release_ccb(done_ccb);
ndaschedule(periph);
cam_periph_unlock(periph);
@@ -1349,7 +1349,7 @@
* so we can keep proper counts.
*/
bp1 = TAILQ_FIRST(&queue);
- cam_iosched_bio_complete(softc->cam_iosched, bp1, done_ccb);
+ cam_iosched_bio_update_stats(softc->cam_iosched, bp1, done_ccb);
xpt_release_ccb(done_ccb);
softc->outstanding_cmds--;
ndaschedule(periph);
@@ -1363,7 +1363,7 @@
} else
bp2->bio_resid = 0;
if (bp1 != bp2)
- cam_iosched_bio_complete(softc->cam_iosched, bp2, NULL);
+ cam_iosched_bio_update_stats(softc->cam_iosched, bp2, NULL);
biodone(bp2);
}
}
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -4788,7 +4788,7 @@
* the case of sendfile can be quite extensive. Release the periph
* refcount taken in dastart() for each CCB.
*/
- cam_iosched_bio_complete(softc->cam_iosched, bp, done_ccb);
+ cam_iosched_bio_update_stats(softc->cam_iosched, bp, done_ccb);
xpt_release_ccb(done_ccb);
KASSERT(softc->refcount >= 1, ("dadone softc %p refcount %d", softc, softc->refcount));
softc->refcount--;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 5, 8:38 PM (4 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40258589
Default Alt Text
D60349.diff (3 KB)
Attached To
Mode
D60349: cam: Rename cam_iosched_bio_complete to cam_iosched_bio_update_stats
Attached
Detach File
Event Timeline
Log In to Comment