K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-09-18T08:26:57.720252Z K 7 svn:log V 296 Part 2 of the locking/completion overhaul. Update the rest of the flush, error and cleanup functions to delay calling the completion functions until the TXQ lock has been released. The TXQ locking in some instances is quite inefficient and should be tidied up before this is merged into -HEAD. END