[stgt] Bug in SYNCHRONIZECACHE10 ?

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Sun Nov 21 02:37:48 CET 2010


On Sun, 21 Nov 2010 09:56:07 +1100
ronnie sahlberg <ronniesahlberg at gmail.com> wrote:

> List,
> 
> I think there is a bug in the implementation of SYNCHRONIZECACHE10 command.
> 
> The bug can be reproduced using the latest git version of
> dbench.samba.org  and using the following command line :
> 
> ./dbench -B iscsi --iscsi-portal=127.0.0.1 --iscsi-port=3260
> --iscsi-target=iqn.ronnie.test --iscsi-lun=1 --loadfile=./iscsi.txt
> --warmup=0 --run-once 1
> 
> The loadfile that generates the SYNCHRONIZECACHE10 command is simple
> text file that I have attached.
> 
> 
> It actually never even reaches the sbc_sync_cache() function but is
> aborted somewhere prior.
> It seems to fail in us_sense_del() when called from scsi_cmd_perform()
> so for this opcode it never gets to
> call down to the actual emulation function.

Hmm, the attached script fails because you set an immediate bit?

It works if I modify the script in the following way:

0.000 SYNCHRONIZECACHE10 0 0 1 0 0x00
--
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