Return-Path: Subject: Re: [PATCH blktests] scsi/004: add regression test for false BLK_STS_OK with non good SAM status To: Bart Van Assche , "maier@linux.ibm.com" , "osandov@osandov.com" Cc: "linux-block@vger.kernel.org" , "jthumshirn@suse.de" , Damien Le Moal , "dgilbert@interlog.com" , "hch@lst.de" , "linux-scsi@vger.kernel.org" , "hare@suse.com" , "lduncan@suse.com" , "osandov@fb.com" References: <1523955817-15790-1-git-send-email-maier@linux.ibm.com> <20180419185330.GA20941@vader> <20180419191320.GB20941@vader> <18799c58a6ce27142b46ba6ec471e09f1eefedcf.camel@wdc.com> From: Jens Axboe Message-ID: <55fb164b-e4a4-95c8-2382-f7251c4973df@kernel.dk> Date: Thu, 19 Apr 2018 13:44:41 -0600 MIME-Version: 1.0 In-Reply-To: <18799c58a6ce27142b46ba6ec471e09f1eefedcf.camel@wdc.com> Content-Type: text/plain; charset=utf-8 List-ID: On 4/19/18 1:41 PM, Bart Van Assche wrote: > On Thu, 2018-04-19 at 12:13 -0700, Omar Sandoval wrote: >> On Thu, Apr 19, 2018 at 11:53:30AM -0700, Omar Sandoval wrote: >>> Thanks for the test! Applied. >> >> Side note, it's unfortunate that this test takes 180 seconds to run only >> because we have to wait for the command timeout. We should be able to >> export request_queue->rq_timeout writeable in sysfs. Would you be >> interested in doing that? > > Hello Omar, > > Is this perhaps what you are looking for? > # ls -l /sys/class/scsi_device/*/*/timeout > -rw-r--r-- 1 root root 4096 Apr 19 08:52 /sys/class/scsi_device/2:0:0:0/device/timeout > -rw-r--r-- 1 root root 4096 Apr 19 12:39 /sys/class/scsi_device/8:0:0:1/device/timeout We should have it generically available though, not just for SCSI. In retrospect, it should have been under queue/ from the start, now we'll end up with duplicate entries for SCSI. -- Jens Axboe