Thread (49 messages) 49 messages, 3 authors, 2021-02-11

Re: [PATCH V9 5/9] nvmet: add bio get helper for different backends

From: Chaitanya Kulkarni <hidden>
Date: 2021-01-19 05:18:00
Also in: linux-block

On 1/18/21 10:28 AM, Christoph Hellwig wrote:
On Wed, Jan 13, 2021 at 05:03:05AM +0000, Chaitanya Kulkarni wrote:
quoted
On 1/11/21 23:33, Christoph Hellwig wrote:
quoted
I'm not a huge fan of this helper, especially as it sets an end_io
callback only for the allocated case, which is a weird calling
convention.
The patch has a right documentation and that end_io is needed
for passthru case. To get rid of the weirdness I can remove
passthru case and make itend_io assign to inline and non-inline bio
to make it non-weired.

Since this eliminates exactly identical lines of the code in atleast two
backend which we should try to use the helper in non-wried way.
I really do not like helper that just eliminate "duplicate lines" vs
encapsulating logic that makes sense one its own.
Okay, I'll drop it, next version.


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help