Bug 183293 - Deadlock when modifying the zvol property of increasing the size.
Summary: Deadlock when modifying the zvol property of increasing the size.
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-25 08:10 UTC by nikhil
Modified: 2017-12-31 22:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nikhil 2013-10-25 08:10:00 UTC
zfs enters in deadlock situation when modifying the zvol property

Fix: 

Just remove the holding the lock,

rrw_enter(&dp->dp_config_rwlock, RW_WRITER, FTAG);

from function,

spa_sync_upgrades

in file spa.c



This fix is already present in base/releng/9.0
How-To-Repeat: Just create the volume and then do some IO on the at volume through iscsi and then increase the size of volume, it will get deadlock.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:40 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped