openzfs / spl

A shim layer which adds the core interfaces required for OpenZFS.
https://zfsonlinux.org/
GNU General Public License v2.0
282 stars 181 forks source link

Incorrect parent returned by the kern_path(name, LOOKUP_PARENT, &parent) function. #648

Closed ab-oe closed 6 years ago

ab-oe commented 6 years ago

Hello,

Since commit 8bcb77fabd7cbabcad49f58750be8683febee92b in kernel tree the kern_path function returns the struct path for the file itself instead of its parent directory. This results that the cache file for the zpool is never removed. With the latest ZFS code it generates ereport.fs.zfs.config_cache_write events.