Return-Path: Received: from esa3.hgst.iphmx.com ([216.71.153.141]:26114 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172AbeDPXCk (ORCPT ); Mon, 16 Apr 2018 19:02:40 -0400 From: Bart Van Assche To: damien.lemoal@wdc.com Cc: Bart Van Assche , Christoph Hellwig , Hannes Reinecke , stable@vger.kernel.org Subject: [PATCH 3/5] sd_zbc: Log zone reset failures Date: Mon, 16 Apr 2018 16:02:36 -0700 Message-Id: <20180416230238.17293-4-bart.vanassche@wdc.com> In-Reply-To: <20180416230238.17293-1-bart.vanassche@wdc.com> References: <20180416230238.17293-1-bart.vanassche@wdc.com> Sender: stable-owner@vger.kernel.org List-ID: A zone reset only fails for conventional zones. Resetting a conventional zone indicates a bug in the software that submitted the zone reset so the information about a zone reset failure is useful information. Hence, do not suppress information about zone reset failures. Signed-off-by: Bart Van Assche Cc: Damien Le Moal Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: stable@vger.kernel.org --- drivers/scsi/sd_zbc.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/scsi/sd_zbc.c b/drivers/scsi/sd_zbc.c index 2d0c06f7db3e..f290e8a9923d 100644 --- a/drivers/scsi/sd_zbc.c +++ b/drivers/scsi/sd_zbc.c @@ -284,18 +284,6 @@ void sd_zbc_complete(struct scsi_cmnd *cmd, unsigned int good_bytes, switch (req_op(rq)) { case REQ_OP_ZONE_RESET: - - if (result && - sshdr->sense_key == ILLEGAL_REQUEST && - sshdr->asc == 0x24) - /* - * INVALID FIELD IN CDB error: reset of a conventional - * zone was attempted. Nothing to worry about, so be - * quiet about the error. - */ - rq->rq_flags |= RQF_QUIET; - break; - case REQ_OP_WRITE: case REQ_OP_WRITE_ZEROES: case REQ_OP_WRITE_SAME: -- 2.16.3