Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751481AbdGRReI (ORCPT ); Tue, 18 Jul 2017 13:34:08 -0400 Received: from mx2.math.uh.edu ([129.7.128.33]:38388 "EHLO mx2.math.uh.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751405AbdGRReH (ORCPT ); Tue, 18 Jul 2017 13:34:07 -0400 From: Jason L Tibbitts III To: Johannes Thumshirn Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, dvyukov@google.com, hare@suse.com, hch@lst.de, martin.petersen@oracle.com Subject: Re: [REGRESSION] 28676d869bbb (scsi: sg: check for valid direction before starting the request) breaks mtx tape library control References: <20170718073747.GD4875@linux-x5ow.site> Date: Tue, 18 Jul 2017 12:33:59 -0500 In-Reply-To: <20170718073747.GD4875@linux-x5ow.site> (Johannes Thumshirn's message of "Tue, 18 Jul 2017 09:37:47 +0200") Message-ID: User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.9 (--) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 976 Lines: 26 I have verified that building a clean v4.12 with 68c59fcea1f2c6a54c62aa896cc623c1b5bc9b47 cherry picked on top still shows the problem: [root@backup2 ~]# mtx -f /dev/sg7 next 0 Unloading drive 0 into Storage Element 45...mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=0 (Unknown?!) mtx: Request Sense: Sense Key=No Sense mtx: Request Sense: FileMark=no mtx: Request Sense: EOM=no mtx: Request Sense: ILI=no mtx: Request Sense: Additional Sense Code = 00 mtx: Request Sense: Additional Sense Qualifier = 00 mtx: Request Sense: BPV=no mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=no MOVE MEDIUM from Element Address 1 to 1045 Failed Nothing appears to be logged; is there any kind of debugging information I can collect which might help to track this down? I'm not particularly good at this but I am pretty sure that I'm building everything properly and am actually booting the patched kernel. - J<