Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: WAPBL patch for testing



On Fri, Nov 07, 2008 at 07:45:53PM -0800, Bill Stouder-Studenmund wrote:
> On Fri, Oct 31, 2008 at 03:10:24PM -0400, Thor Lancelot Simon wrote:
> > On Fri, Oct 31, 2008 at 08:03:32PM +0100, Juergen Hannken-Illjes wrote:
> > > On Fri, Oct 31, 2008 at 07:03:59PM +0100, Joerg Sonnenberger wrote:
> > > 
> > > The reason for these wapbl locks is ffs snapshots.  VOP_PUTPAGES() may
> > > need to copy-on-write which needs to run inside a wapbl transaction
> > > as we allocate blocks here.
> > 
> > Would this problem be any easier to solve if the snapshot and wapbl
> > code used the same notion of a "transaction"?  I was very surprised
> > to see that wapbl brought in an a whole new idea of a "fs transaction"
> > when the snapshot code already seemed to have one.
> 
> I think one issue is that wapbl predates fss. Yes, it only got released 
> recently, but it is older.
> 
> Also, I believe wapbl and fss really do have different ideas about what 
> their transactions are. wapbl always needs to copy blocks and the snapshot 
> code only needs to copy blocks if they change for the first time since the 
> last snapshot. Likewise, wapbl never allocates blocks (it just writes a 
> copy to the journal) and the snapshot code allocates new blocks in the fs.

Snapshots don't have transactions.  We have fstrans for file system
suspension and here it helps to get the file system into a consistent
and quiet state.

-- 
Juergen Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig 
(Germany)


Home | Main Index | Thread Index | Old Index