[lkml]   [2018]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/4] nvmet-rdma: Use new SGL alloc/free helper for requests
On 4/4/2018 6:43 AM, Sagi Grimberg wrote:
> IIRC, this might result in nvmet-rdma executing data-transfer even
> for failed requests in some error cases. I'm not sure this is the
> only case, but have you tested what happens in error cases?

That's why I set transfer_len to zero when we exit this function on
error (see the error_out label):

> +error_out:
> + rsp->req.transfer_len = 0;
> + return NVME_SC_INTERNAL;

I haven't tested the error path, but I can. Is it sufficient to just
change the code to create an error or do you know of a better way to
test this?



 \ /
  Last update: 2018-04-04 18:47    [W:0.050 / U:6.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site