Add API to wait for pending commit callbacks
authorRicardo M. Correia <ricardo.correia@oracle.com>
Fri, 21 Jan 2011 22:35:41 +0000 (14:35 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 16 Feb 2011 19:20:06 +0000 (11:20 -0800)
commit54a179e7b80413bd48cd2cd259110fb493d0215e
tree8bce4e2af34f745165ee0b225e0616ee823dfc7d
parent8d4e8140ef67fa9c8fa0b1d0f5b1d5d36c747969
Add API to wait for pending commit callbacks

This adds an API to wait for pending commit callbacks of already-synced
transactions to finish processing.  This is needed by the DMU-OSD in
Lustre during device finalization when some callbacks may still not be
called, this leads to non-zero reference count errors.  See lustre.org
bug 23931.
include/sys/txg.h
module/zfs/dmu_objset.c
module/zfs/txg.c