Optimize write protection MODE SENSE in da(4).

Description

On every open da(4) driver read all mode pages to use only one bit. It was done so to not depend on the list of pages supported by the disk. But I've found that at least for SATL of LSI/Broadcom HBAs with WD HDDs Power Condition mode page reading may take significant amount of time, much more than any other mode page, that visibly increased disk retaste time by GEOM.

Problem/Justification

None

Impact

None

Activity

Show:

Alexander Motin 
February 22, 2022 at 7:23 PM

Address that by using data returned by the first MODE SENSE request to limit the following ones to only one (the first for now) mode page: https://github.com/freebsd/freebsd-src/commit/a9a2cdaf3c193ee1b597d0eef51544636421d973

With the change simultaneous retaste of 39 SATA disks takes about 2.5s instead of more than 4s before, and I no longer see "dareprobe" status on GEOM event thread.

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created February 22, 2022 at 7:21 PM
Updated August 2, 2022 at 2:34 PM
Resolved February 22, 2022 at 7:24 PM