[dm-devel] calling dm_io

Alasdair G Kergon agk at redhat.com
Thu Nov 8 17:22:18 UTC 2012


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




More information about the dm-devel mailing list