[Bug 221952] cam iosched: Fix trim statistics

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 31 10:11:10 UTC 2017


            Bug ID: 221952
           Summary: cam iosched: Fix trim statistics
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: fk at fabiankeil.de
             Flags: mfc-stable11?

Created attachment 185944
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=185944&action=edit
cam iosched: Fix trim statistics

The attached patch fixes the cam iosched trim statistics.

When cam_iosched_bio_complete() gets called, all pending
BIO_DELETEs are done.

Previously only one of them was accounted for, as a result
the "pending" counter got higher and higher and the "out"
count was off as well. An ElectroBSD release build in a vm
resulted in ~60k "leaked" pending trims.

cam_iosched_ticker() has a note that seems to refer to this
bug but I didn't adjust it.

Obtained from: ElectroBSD

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list