<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ldd3/sbull, branch v3.4</title>
<subtitle>ldd3 code examples</subtitle>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/'/>
<entry>
<title>sbull: Update sbull_make_request function to make_request_fn new signature</title>
<updated>2012-05-06T03:05:43+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>javier@dowhile0.org</email>
</author>
<published>2012-05-06T03:05:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=5759bf4dcc6e4155447bcd40ddebccee50cd3fa5'/>
<id>5759bf4dcc6e4155447bcd40ddebccee50cd3fa5</id>
<content type='text'>
Signed-off-by: Javier Martinez Canillas &lt;javier@dowhile0.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Javier Martinez Canillas &lt;javier@dowhile0.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Use blk_fetch_request instead blk_peek_request to dequeue requests</title>
<updated>2011-01-08T00:07:34+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2011-01-06T06:43:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=26e967f1a1dc04f6e234f617c5ce5e895c431bc2'/>
<id>26e967f1a1dc04f6e234f617c5ce5e895c431bc2</id>
<content type='text'>
The block layer request API changes make a requirement for block drivers
to dequeue requests before signal its completition.

Commit 1dfd4ab138fc9f9cad869e6110022c7cfd5544d1 changed sbull to use
the new block layer API. But the patch only renamed the functions while
keeping the old driver semantics. It used blk_peek_request() that does the
same that elv_next_request() did.

Remove the request from the queue before is not only a recomendation
but a true requirement. Attempting to complete a request that remains
in the queue make the kernel oops. So the last commit introduced a Bug.

This patch uses blk_fetch_request() instead of blk_peek_request().
blk_fetch_request() not only returns the request in the head of the
queue but also removes the request from the queue so a latter
signaling of the request completition doesn't hang the system.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The block layer request API changes make a requirement for block drivers
to dequeue requests before signal its completition.

Commit 1dfd4ab138fc9f9cad869e6110022c7cfd5544d1 changed sbull to use
the new block layer API. But the patch only renamed the functions while
keeping the old driver semantics. It used blk_peek_request() that does the
same that elv_next_request() did.

Remove the request from the queue before is not only a recomendation
but a true requirement. Attempting to complete a request that remains
in the queue make the kernel oops. So the last commit introduced a Bug.

This patch uses blk_fetch_request() instead of blk_peek_request().
blk_fetch_request() not only returns the request in the head of the
queue but also removes the request from the queue so a latter
signaling of the request completition doesn't hang the system.
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Remove blk_fs_request wrapper</title>
<updated>2011-01-08T00:04:33+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2011-01-03T15:23:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=383b607f7fff26ec216765b20b1125897a3f360a'/>
<id>383b607f7fff26ec216765b20b1125897a3f360a</id>
<content type='text'>
This wrapper doesn't exist anymore in current kernel (2.6.37) so
so doesn't make any sense to know its existance.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This wrapper doesn't exist anymore in current kernel (2.6.37) so
so doesn't make any sense to know its existance.
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: blk_put_queue() is not an exported symbol anymore. Use kobject_put(q-&gt;kobj) instead</title>
<updated>2011-01-07T23:50:46+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2011-01-04T23:18:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=2271ac7ec52199572c21c7469c549942b0aed7a2'/>
<id>2271ac7ec52199572c21c7469c549942b0aed7a2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Change script from sh to bash</title>
<updated>2010-12-29T04:13:59+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2010-12-29T04:13:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=60fe425a271707bb3e4723d67d790886e159f350'/>
<id>60fe425a271707bb3e4723d67d790886e159f350</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Update struct block_device_operations handlers signatures</title>
<updated>2010-12-10T00:04:09+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2010-12-10T00:04:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=55a7a2ea6f8b520c3008298694d29f62ad8a6e43'/>
<id>55a7a2ea6f8b520c3008298694d29f62ad8a6e43</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Make scripts files executable</title>
<updated>2010-12-09T23:33:02+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2010-12-09T23:33:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=52bfadd26b04248fa3875964dffcd08452b3efd2'/>
<id>52bfadd26b04248fa3875964dffcd08452b3efd2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Replace bio_cur_sectors() with bio_cur_bytes() and use unwrapped macro __rq_for_each_bio()</title>
<updated>2010-12-09T23:32:41+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2010-12-09T23:32:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=efaed28027483b9ecaa925ddeb0b02dc9be92d4e'/>
<id>efaed28027483b9ecaa925ddeb0b02dc9be92d4e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: Use blk_queue_logical_block_size() instead of blk_queue_hardsect_size()</title>
<updated>2010-12-08T23:41:01+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2010-12-08T23:41:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=e742f05634e0f75637cf89a911256944eb62c134'/>
<id>e742f05634e0f75637cf89a911256944eb62c134</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sbull: More changes due new block layer request queue API interface</title>
<updated>2010-12-08T15:03:35+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>martinez.javier@gmail.com</email>
</author>
<published>2010-12-08T15:03:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fcked.net/ldd3/commit/?id=8cf8a345ea9a0736b9dbfa092e7068cccc82a8b0'/>
<id>8cf8a345ea9a0736b9dbfa092e7068cccc82a8b0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
