<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/btrfs/raid56.c, branch linux-6.3.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.3.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.3.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-02-15T18:38:55Z</updated>
<entry>
<title>btrfs: raid56: handle endio in scrub_rbio</title>
<updated>2023-02-15T18:38:55Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2023-01-11T06:23:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=08241d3c745ed7c6de8a762c0737b337c68a6c87'/>
<id>urn:sha1:08241d3c745ed7c6de8a762c0737b337c68a6c87</id>
<content type='text'>
The only caller of scrub_rbio calls rbio_orig_end_io right after it,
move it into scrub_rbio to match the other work item helpers.

Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: raid56: handle endio in recover_rbio</title>
<updated>2023-02-15T18:38:54Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2023-01-11T06:23:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=40f87ddb5dbe43fb209901815d24e3e718aef155'/>
<id>urn:sha1:40f87ddb5dbe43fb209901815d24e3e718aef155</id>
<content type='text'>
Both callers of recover_rbio call rbio_orig_end_io right after it, so
move the call into the shared function.

Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: raid56: handle endio in rmw_rbio</title>
<updated>2023-02-15T18:38:54Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2023-01-11T06:23:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1d0ef1ca119f1a1fbcf5be5acce407147cb15245'/>
<id>urn:sha1:1d0ef1ca119f1a1fbcf5be5acce407147cb15245</id>
<content type='text'>
Both callers of rmv_rbio call rbio_orig_end_io right after it, so
move the call into the shared function.

Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: raid56: submit the read bios from scrub_assemble_read_bios</title>
<updated>2023-02-15T18:38:54Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2023-01-11T06:23:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=52f0c198645c68b80536384b7e666c4c56777b5e'/>
<id>urn:sha1:52f0c198645c68b80536384b7e666c4c56777b5e</id>
<content type='text'>
Instead of filling in a bio_list and submitting the bios in the only
caller, do that in scrub_assemble_read_bios.  This removes the
need to pass the bio_list, and also makes it clear that the extra
bio_list cleanup in the caller is entirely pointless.  Rename the
function to scrub_read_bios to make it clear that the bios are not
only assembled.

Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: raid56: fold rmw_read_wait_recover into rmw_read_bios</title>
<updated>2023-02-15T18:38:54Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2023-01-11T06:23:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=02efa3a6baffdd753dc04034c848a5956784422d'/>
<id>urn:sha1:02efa3a6baffdd753dc04034c848a5956784422d</id>
<content type='text'>
There is very little extra code in rmw_read_bios, and a large part of it
is the superfluous extra cleanup of the bio list.  Merge the two
functions, and only clean up the bio list after it has been added to
but before it has been emptied again by submit_read_wait_bio_list.

Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: raid56: fold recover_assemble_read_bios into recover_rbio</title>
<updated>2023-02-15T18:38:54Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2023-01-11T06:23:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d838d05ea5091044957d664b9f9c38fefcaf6d97'/>
<id>urn:sha1:d838d05ea5091044957d664b9f9c38fefcaf6d97</id>
<content type='text'>
There is very little extra code in recover_rbio, and a large part of it
is the superfluous extra cleanup of the bio list.  Merge the two
functions, and only clean up the bio list after it has been added to
but before it has been emptied again by submit_read_wait_bio_list.

Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: raid56: add a bio_list_put helper</title>
<updated>2023-02-15T18:38:54Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2023-01-11T06:23:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=801fcfc5d790f4a9be2897713bd6dd08bed253f1'/>
<id>urn:sha1:801fcfc5d790f4a9be2897713bd6dd08bed253f1</id>
<content type='text'>
Add a helper to put all bios in a list. This does not need to be added
to block layer as there are no other users of such code.

Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: raid56: wait for I/O completion in submit_read_bios</title>
<updated>2023-02-15T18:38:54Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2023-01-11T06:23:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1c76fb7b31a43ad8b63faa3c6612b04eb3dea5d6'/>
<id>urn:sha1:1c76fb7b31a43ad8b63faa3c6612b04eb3dea5d6</id>
<content type='text'>
In addition to setting up the end_io handler and submitting the bios in
submit_read_bios, also wait for them to be completed instead of waiting
for the completion manually in all three callers.

Rename submit_read_bios to submit_read_wait_bio_list to make it clear
it waits for the bios as well.

Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: raid56: simplify code flow in rmw_rbio</title>
<updated>2023-02-15T18:38:54Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2023-01-11T06:23:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4d7627010bc24f68d617c1c455e12a3dfcffcb2c'/>
<id>urn:sha1:4d7627010bc24f68d617c1c455e12a3dfcffcb2c</id>
<content type='text'>
Remove the write goto label by moving the data page allocation and data
read into the branch.

Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: raid56: simplify error handling and code flow in raid56_parity_write</title>
<updated>2023-02-15T18:38:54Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2023-01-11T06:23:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=abb49e87425be0d573bdafb9a5dbe2c64719796f'/>
<id>urn:sha1:abb49e87425be0d573bdafb9a5dbe2c64719796f</id>
<content type='text'>
Handle the error return on alloc_rbio failure directly instead of using
a goto and remove the queue_rbio goto label by moving the plugged
check into the if branch.

Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
</feed>
