[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] calling dm_io
- From: "Kasatkin, Dmitry" <dmitry kasatkin intel com>
- To: device-mapper development <dm-devel redhat com>
- Subject: [dm-devel] calling dm_io
- Date: Thu, 8 Nov 2012 18:04:44 +0200
Hello,
dm_io() does following:
if (!io_req->notify.fn)
So it expects caller to initialize notify.fn, but in couple of places
it is not done when allocating on stack...
dm-bufio.c:dm_bufio_issue_flush()
dm-raid1.c:mirror_flush()
chunk_io() does it correctly...
struct dm_io_request io_req = {
....,
.notify.fn = NULL,
};
I wonder how raid and buf io then works. By chance...
- Dmitry
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]