Patchset to add asynchronous open/close to master

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Jun 13 04:06:59 MDT 2012

On Wed, Jun 13, 2012 at 11:54:33AM +0200, Stefan (metze) Metzmacher wrote:
> There's no infrastructure to defer async close calls,
> so the smb layer calls file_free(), which means we return the result to
> the client before the close is done.

This might actually be an optimization that is simple and
that we might do, similar to the early ack on async write.
There might be file systems where close can not reasonably
fail under non-catastropic circumstances like broken disks
or corrupt file systems. For these cases it might be
worthwile to add putting the close into a background thread.
close(2) is deferred due to posix locks today, so we can not
reliably return a possible close(2) error correctly to the
client in all cases anyway.

With best regards,


SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen, mailto:kontakt at

More information about the samba-technical mailing list