[stgt] Using tgtd to pass through a SCSI tape drive

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Thu Jul 29 17:51:06 CEST 2010


On Thu, 29 Jul 2010 16:30:27 +0100
Tim Small <tim at seoss.co.uk> wrote:

> At the same time, I get this from the kernel:
> 
> [3034458.454685] mptscsih: ioc0: attempting task abort! 
> (sc=ffff810107150d40)
> [3034458.466570] st 1:0:3:0: CDB: Write Filemarks: 10 00 00 00 01 00 00 
> 00 00 00 00 00 00 00 00 00
> [3034458.476705] mptscsih: ioc0: task abort: SUCCESS (sc=ffff810107150d40)
> [3034462.137144] mptscsih: ioc0: attempting task abort! 
> (sc=ffff81012bcf6d00)

We need to figure out why the adapter tries to abort the task.

Maybe the timeout is too short. Can you try the latest git code with
the following patch?

Thanks,

diff --git a/usr/bs_sg.c b/usr/bs_sg.c
index bee6df5..017ee02 100644
--- a/usr/bs_sg.c
+++ b/usr/bs_sg.c
@@ -46,7 +46,7 @@
 #include "tgtadm_error.h"
 
 #define BS_SG_RESVD_SZ  (512 * 1024)
-#define BS_SG_TIMEOUT	2000
+#define BS_SG_TIMEOUT	60000
 #define BS_SG_SHIFT	9
 
 static int graceful_read(int fd, void *p_read, int to_read)
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list