]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
EFI loader: Don't free bcache for DEVT_DISK devs
authorColin Percival <cperciva@FreeBSD.org>
Thu, 30 Sep 2021 21:48:14 +0000 (14:48 -0700)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 08:04:57 +0000 (03:04 -0500)
commite70ed10f8f4d648ae69052aa805d36344ae75140
treea003f08b9d841dc374d0b919a32a5b8ea1ed15db
parenta4325c6a6552f53325e42379163873c0453bacb1
EFI loader: Don't free bcache for DEVT_DISK devs

Booting on an EC2 c5.xlarge instance, this reduces the number of I/Os
performed from 609 to 432, reduces the total number of blocks read
from 61963 to 60797, and reduces the time spent in the loader by 39 ms.

Note that b4cb3fe0e39a allowed the bcache to be retained for most of
the boot process, but relies on mounting filesystems; this commit
allows the bcache to be retained at the start of the boot process,
before the root filesystem has been located.

Reviewed by: imp, tsoome
MFC after: 1 week
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D32239

(cherry picked from commit ce73f768b76486b1562f207a6fc1cef87065418a)
stand/efi/libefi/efipart.c