[dm-devel] a problem when i use dm_io

wzpywzh wzpywzh at 163.com
Thu Dec 1 15:15:14 UTC 2011


hi, all
i am interested in facebook flashcache,which uses device mapper to make ssd as a disk cache, i want to add some functions in it, so i modify some codes. but when i use dm_io_async_bvec(1, &job->cache, WRITE,bio->bi_io_vec,bio->bi_idx, io_callback, kcached_job)  (the params is all right)submit a bio. 
it does not call the io_callback function. i use systemtap to trace the function. the result like this:(sometimes is: enter dm_io_async_bvec; enter submit_bio; enter generic_make_request, generic_make_request return, submit_bio return, dm_io_async_bvec return.  sometimes is :enter dm_io_async_bvec; enter submit_bio; enter generic_make_request,  dm_io_async_bvec return)  
it do not know why, and why it did not call the io_callback.

thanks.

2011-12-01



wzpywzh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20111201/b8d5d5c2/attachment.htm>


More information about the dm-devel mailing list