Thread (31 messages) 31 messages, 4 authors, 2023-08-15

Re: [dm-devel] [PATCH v14 03/11] block: add copy offload support

From: Nitesh Shetty <hidden>
Date: 2023-08-14 11:05:26
Also in: dm-devel, linux-doc, linux-fsdevel, linux-nvme, lkml

On 23/08/11 03:06PM, Bart Van Assche wrote:
On 8/11/23 03:52, Nitesh Shetty wrote:
quoted
+		if (rem != chunk)
+			atomic_inc(&cio->refcount);
This code will be easier to read if the above if-test is left out
and if the following code is added below the for-loop:

if (atomic_dec_and_test(&cio->refcount))
	blkdev_copy_endio(cio);
Acked

Thank you,
Nitesh Shetty

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help