Project

General

Profile

Actions

Bug #6385

closed

Fix unlocking order in zfs_zget

Added by Richard Yao almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2015-10-24
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

We release a buffer before releasing a lock when we should release the lock first for two reasons. The first is to ensure that we do not hold the lock any longer than necessary. The second is unlock in the inverse order of locking for consistency. A patch to fix this has been ported from ZoL:

https://github.com/openzfs/openzfs/pull/6
https://github.com/zfsonlinux/zfs/commit/f3ad9cd67ae57760a7ec9e8cdb0e33aa8bbea4d0

Actions

Also available in: Atom PDF