On Thu, Nov 08, 2012 at 06:04:44PM +0200, Kasatkin, Dmitry wrote: > So it expects caller to initialize notify.fn, but in couple of places > it is not done when allocating on stack... As far as I can see it is initialised where it needs to be. > struct dm_io_request io_req = { > ...., > .notify.fn = NULL, > }; (Struct members not listed explicitly are initialised according to the same rules used for initialising static variables. IOW a pointer is initialised to NULL.) Alasdair -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel