[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] calling dm_io



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]