[zfs-code] Read-write locks in libzpool

2006-06-08 Thread Mark Shellenbaum
Ricardo Correia wrote: > Ok, I took a look at the libc and the kernel implementation of rwlocks. > > I'm a little worried if I got this right, because most of the ZFS code can > run > both in userspace and in the kernel, which seem to behave differently in the > RW_xxx_HELD() macros, and I nee

[zfs-code] Nested Transactions

2006-06-08 Thread Mark Maybee
No, nested transactions are not allowed. (your sense is correct :-)). -Mark Jeremy Teo wrote: > Are nested transactions allowed/supported by the DMU? > > Namely, if I have function Foo and function Bar that both wrap their > own operations using a transaction such that Foo and Bar are > atomic/