<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/block/elevator.c, branch v6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v6.3</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2023-02-09T16:38:16Z</updated>
<entry>
<title>block: make kobj_type structures constant</title>
<updated>2023-02-09T16:38:16Z</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2023-02-08T04:01:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5f6224175fbe4c2b91e303c17af4d4eb5e3a60a7'/>
<id>urn:sha1:5f6224175fbe4c2b91e303c17af4d4eb5e3a60a7</id>
<content type='text'>
Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.")
the driver core allows the usage of const struct kobj_type.

Take advantage of this to constify the structure definitions to prevent
modification at runtime.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Link: https://lore.kernel.org/r/20230208-kobj_type-block-v1-1-0b3eafd7d983@weissschuh.net
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>block: untangle request_queue refcounting from sysfs</title>
<updated>2022-11-30T18:09:00Z</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2022-11-14T04:26:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2bd85221a625b316114bafaab527770b607095d3'/>
<id>urn:sha1:2bd85221a625b316114bafaab527770b607095d3</id>
<content type='text'>
The kobject embedded into the request_queue is used for the queue
directory in sysfs, but that is a child of the gendisks directory and is
intimately tied to it.  Move this kobject to the gendisk and use a
refcount_t in the request_queue for the actual request_queue refcounting
that is completely unrelated to the device model.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Link: https://lore.kernel.org/r/20221114042637.1009333-5-hch@lst.de
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>block: use bool as the return type of elv_iosched_allow_bio_merge</title>
<updated>2022-11-29T17:53:10Z</updated>
<author>
<name>Jinlong Chen</name>
<email>nickyc975@zju.edu.cn</email>
</author>
<published>2022-11-29T15:46:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8d283ee62b077968e218531b24260e1cc51bd484'/>
<id>urn:sha1:8d283ee62b077968e218531b24260e1cc51bd484</id>
<content type='text'>
We have bool type now, update the old signature.

Signed-off-by: Jinlong Chen &lt;nickyc975@zju.edu.cn&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Link: https://lore.kernel.org/r/0db0a0298758d60d0f4df8b7126ac6a381e5a5bb.1669736350.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>block: replace "len+name" with "name+len" in elv_iosched_show</title>
<updated>2022-11-29T17:53:10Z</updated>
<author>
<name>Jinlong Chen</name>
<email>nickyc975@zju.edu.cn</email>
</author>
<published>2022-11-29T15:46:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c6451ede406b9f57fcd61d48433a6b8b2be862e3'/>
<id>urn:sha1:c6451ede406b9f57fcd61d48433a6b8b2be862e3</id>
<content type='text'>
The "pointer + offset" pattern is more resonable.

Signed-off-by: Jinlong Chen &lt;nickyc975@zju.edu.cn&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Link: https://lore.kernel.org/r/d9beaee71b14f7b2a39ab0db6458dc0f7d961ceb.1669736350.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>block: always use 'e' when printing scheduler name</title>
<updated>2022-11-29T17:53:10Z</updated>
<author>
<name>Jinlong Chen</name>
<email>nickyc975@zju.edu.cn</email>
</author>
<published>2022-11-29T15:46:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7a3b3660fd30c028e7ae1cd82697933789962406'/>
<id>urn:sha1:7a3b3660fd30c028e7ae1cd82697933789962406</id>
<content type='text'>
Printing e-&gt;elevator_name in all cases improves the readability, and
'e' and 'cur' are identical in this branch.

Suggested-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jinlong Chen &lt;nickyc975@zju.edu.cn&gt;
Link: https://lore.kernel.org/r/4bae180ffbac608ea0cf46ffa9739ce0973b60aa.1669736350.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>block: replace continue with else-if in elv_iosched_show</title>
<updated>2022-11-29T17:53:06Z</updated>
<author>
<name>Jinlong Chen</name>
<email>nickyc975@zju.edu.cn</email>
</author>
<published>2022-11-29T15:46:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5998249e3238428156b09911f1606b41113443c5'/>
<id>urn:sha1:5998249e3238428156b09911f1606b41113443c5</id>
<content type='text'>
else-if is more readable than continue here.

Signed-off-by: Jinlong Chen &lt;nickyc975@zju.edu.cn&gt;
Link: https://lore.kernel.org/r/77ac19ba556efd2c8639a6396eb4203c59bc13d6.1669736350.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>block: include 'none' for initial elv_iosched_show call</title>
<updated>2022-11-29T17:48:59Z</updated>
<author>
<name>Jinlong Chen</name>
<email>nickyc975@zju.edu.cn</email>
</author>
<published>2022-11-29T15:46:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7919d679ae09c0dc30dfecb7cbc02306cf95cdd7'/>
<id>urn:sha1:7919d679ae09c0dc30dfecb7cbc02306cf95cdd7</id>
<content type='text'>
This makes the printing order of the io schedulers consistent, and removes
a redundant q-&gt;elevator check.

Signed-off-by: Jinlong Chen &lt;nickyc975@zju.edu.cn&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Link: https://lore.kernel.org/r/bdd7083ed4f232e3285f39081e3c5f30b20b8da2.1669736350.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>elevator: remove an outdated comment in elevator_change</title>
<updated>2022-11-23T13:48:20Z</updated>
<author>
<name>Jinlong Chen</name>
<email>nickyc975@zju.edu.cn</email>
</author>
<published>2022-11-22T14:21:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4284354758d67cf77ab2a4494e28d4c05fb83074'/>
<id>urn:sha1:4284354758d67cf77ab2a4494e28d4c05fb83074</id>
<content type='text'>
mq is no longer a special case.

Signed-off-by: Jinlong Chen &lt;nickyc975@zju.edu.cn&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Link: https://lore.kernel.org/r/cbf47824fc726440371e74c867bf635ae1b671a3.1669126766.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>elevator: update the document of elevator_match</title>
<updated>2022-11-23T13:48:20Z</updated>
<author>
<name>Jinlong Chen</name>
<email>nickyc975@zju.edu.cn</email>
</author>
<published>2022-11-22T14:21:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f69b5e8f356e4e57e94b806ca1dcb9771933bb9c'/>
<id>urn:sha1:f69b5e8f356e4e57e94b806ca1dcb9771933bb9c</id>
<content type='text'>
elevator_match does not care about elevator_features any more. Remove
related descriptions from its document.

Fixes: ffb86425ee2c ("block: don't check for required features in elevator_match")
Signed-off-by: Jinlong Chen &lt;nickyc975@zju.edu.cn&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Link: https://lore.kernel.org/r/a58424555202c07a9ccf7f60c3ad7e247da09e25.1669126766.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>elevator: printk a warning if switching to a new io scheduler fails</title>
<updated>2022-11-23T13:48:08Z</updated>
<author>
<name>Jinlong Chen</name>
<email>nickyc975@zju.edu.cn</email>
</author>
<published>2022-11-22T14:21:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e0cca8bc9cd8d6176921cb3f5f466d3ccfbc6b99'/>
<id>urn:sha1:e0cca8bc9cd8d6176921cb3f5f466d3ccfbc6b99</id>
<content type='text'>
printk a warning to indicate that the io scheduler has been set to none
if switching to a new io scheduler fails.

Suggested-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jinlong Chen &lt;nickyc975@zju.edu.cn&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Link: https://lore.kernel.org/r/d51ed0fb457db7a4f9cbb0dbce36d534e22be457.1669126766.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
</feed>
