]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix assert in FreeBSD-specific dmu_read_pages
authorAndriy Gapon <avg@FreeBSD.org>
Sun, 28 Feb 2021 01:23:09 +0000 (03:23 +0200)
committerGitHub <noreply@github.com>
Sun, 28 Feb 2021 01:23:09 +0000 (17:23 -0800)
commit2e160dee97a4badbc318561f76ea56451c916d2f
tree938f3f93cd3c7d743fccad77faaca7ce64cfa979
parent3e73ea0c10df0a6ac62ce076ba8d6dad835d5d4b
Fix assert in FreeBSD-specific dmu_read_pages

The function has three similar pieces of code: for read-behind pages,
requested pages and read-ahead pages.  All three pieces had an
assert to ensure that the page is not mapped.  Later the assert was
relaxed to require that the page is not mapped for writing.  But that
was done in two places out of three.  This change fixes the third piece,
read-ahead.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Andriy Gapon <avg@FreeBSD.org>
Closes #11654
module/os/freebsd/zfs/dmu_os.c