Project

General

Profile

Bug #6566

panics in zfs_ioc_objset_stats_impl during zvol creation and destruction

Added by Alan Somers over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2016-01-19
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

There is a short race condition during which zvol_get_stats() can return EEXIST in zfs_ioc_objset_stats_impl(): after a zvol's znode gets created but before its zap gets created. Due to zfs_ioc_objset_stats_impl() not having a hold on the objset, it must simply ignore such errors.

Similarly, zvol_get_stats() can return ENOENT during zvol destruction. zfs_ioc_objset_stats_impl() must similarly ignore it.

Both of these errors will result in panics if ignored.

Both of these panics were revealed by running the ZFS test suite on FreeBSD while another process does frequent "zfs status" and "zpool status" commands.

History

#1

Updated by Alan Somers about 4 years ago

ahrens said these panics were fixed in a different way by https://github.com/openzfs/openzfs/commit/3b2aab18808792cbd248a12f1edf139b89833c13 . This bug should therefore be closed.

#2

Updated by Alan Somers about 4 years ago

I don't seem to have permission to close bugs. The next person who does and who reads this bug should close it.

#3

Updated by Igor Kozhukhov about 4 years ago

  • Status changed from In Progress to Feedback

should be closed

#4

Updated by Igor Kozhukhov about 4 years ago

  • Status changed from Feedback to Closed

closed by request

Also available in: Atom PDF