Subject: Re: File system suspension -- new API
To: None <tech-kern@netbsd.org>
From: Pavel Cahyna <pavel@netbsd.org>
List: tech-kern
Date: 12/31/2006 12:04:38
On Sun, Dec 31, 2006 at 11:46:27AM +0100, Juergen Hannken-Illjes wrote:
> On Sun, Dec 31, 2006 at 10:34:03AM +0000, Pavel Cahyna wrote:
> > Why should it ignore lock while suspending instead of taking them
> > normally?
> 
> As we cannot add fstrans_start() to xxx_lock() not ignoring locks will
> quickly deadlock.

Why can't you add fstrans_start(..., fstrans_shared) to ufs_lock before
the call to lockmgr()?

Pavel