[Stgt-devel] ibmvio - rdma error
FUJITA Tomonori
fujita.tomonori
Thu Apr 5 10:39:06 CEST 2007
From: Bastian Blank <waldi at berlios.de>
Subject: Re: [Stgt-devel] ibmvio - rdma error
Date: Thu, 5 Apr 2007 10:28:56 +0200
> On Thu, Apr 05, 2007 at 10:24:05AM +0200, Bastian Blank wrote:
> > The original ibmvscsis used maximum size of 128k (256 sectors) for the
> > rdma transfers. ibmvstgt uses 512 by default. If I reduce the maximum
> > size to 256, it seems to work.
>
> I found an ibmvscsis version which uses 512 for the size but splits them
> into 128k rdma transfers. I don't know if this works as this version
> killed filesystems.
I thought ibmvscsis does it because it doesn't want to call
dma_alloc_coherent for too large data, however, there might be some
limit on RMDA transfer length.
Can you try the following patch to see what error we get?
diff --git a/drivers/scsi/ibmvscsi/ibmvstgt.c b/drivers/scsi/ibmvscsi/ibmvstgt.c
index a7fbd10..a725b8b 100644
--- a/drivers/scsi/ibmvscsi/ibmvstgt.c
+++ b/drivers/scsi/ibmvscsi/ibmvstgt.c
@@ -248,7 +248,7 @@ static int ibmvstgt_rdma(struct scsi_cmnd *sc, struct scatterlist *sg, int nsg,
md[i].va + mdone);
if (err != H_SUCCESS) {
- eprintk("rdma error %d %d\n", dir, slen);
+ eprintk("rdma error %d %d %d\n", dir, slen, err);
goto out;
}
More information about the stgt
mailing list