All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: rraptorr@nails.eu.org
Cc: linux-scsi@vger.kernel.org, Hannes Reinecke <hare@suse.de>,
	"Martin K. Petersen" <martin.petersen@oracle.com>
Subject: [PATCH] Do not issue SCSI RSOC command to Promise Vtrak E610f sd_mod RSOC usage
Date: Tue, 29 Jul 2014 05:53:53 -0700	[thread overview]
Message-ID: <20140729125353.GA19883@infradead.org> (raw)
In-Reply-To: <20140724152838.GA1533@infradead.org>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 3547 bytes --]

ping?  ÍI'd really like to get a review on this one and merge it for
3.17

On Thu, Jul 24, 2014 at 08:28:38AM -0700, Christoph Hellwig wrote:
> Thanks, this one looks good to me.  Can someone else give me a second
> review on the attached patch so I can merged it?
> 
> ---
> >From 95bc83fa0d6e9a6152cd6fce79ff87c0994e83ed Mon Sep 17 00:00:00 2001
> From: Janusz Dziemidowicz <rraptorr@nails.eu.org>
> Date: Thu, 24 Jul 2014 15:48:46 +0200
> Subject: [PATCH] Do not issue SCSI RSOC command to Promise Vtrak E610f
> 
> Some devices don't like REPORT SUPPORTED OPERATION CODES and will
> simply timeout causing sd_mod init to take a very very long time.
> Introduce BLIST_NO_RSOC scsi scan flag, that stops RSOC from being
> issued. Add it to Promise Vtrak E610f entry in scsi scan
> blacklist. Fixes bug #79901 reported at
> https://bugzilla.kernel.org/show_bug.cgi?id=79901
> 
> Fixes: 98dcc2946adb ("SCSI: sd: Update WRITE SAME heuristics")
> 
> Signed-off-by: Janusz Dziemidowicz <rraptorr@nails.eu.org>
> ---
>  drivers/scsi/scsi_devinfo.c | 1 +
>  drivers/scsi/scsi_scan.c    | 6 ++++++
>  include/scsi/scsi_devinfo.h | 1 +
>  3 files changed, 8 insertions(+)
> 
> diff --git a/drivers/scsi/scsi_devinfo.c b/drivers/scsi/scsi_devinfo.c
> index f969aca..49014a1 100644
> --- a/drivers/scsi/scsi_devinfo.c
> +++ b/drivers/scsi/scsi_devinfo.c
> @@ -222,6 +222,7 @@ static struct {
>  	{"PIONEER", "CD-ROM DRM-602X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
>  	{"PIONEER", "CD-ROM DRM-604X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
>  	{"PIONEER", "CD-ROM DRM-624X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
> +	{"Promise", "VTrak E610f", NULL, BLIST_SPARSELUN | BLIST_NO_RSOC},
>  	{"Promise", "", NULL, BLIST_SPARSELUN},
>  	{"QUANTUM", "XP34301", "1071", BLIST_NOTQ},
>  	{"REGAL", "CDC-4X", NULL, BLIST_MAX5LUN | BLIST_SINGLELUN},
> diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
> index e02b3aa..70919fc 100644
> --- a/drivers/scsi/scsi_scan.c
> +++ b/drivers/scsi/scsi_scan.c
> @@ -922,6 +922,12 @@ static int scsi_add_lun(struct scsi_device *sdev, unsigned char *inq_result,
>  	if (*bflags & BLIST_USE_10_BYTE_MS)
>  		sdev->use_10_for_ms = 1;
>  
> +	/* some devices don't like REPORT SUPPORTED OPERATION CODES
> +	 * and will simply timeout causing sd_mod init to take a very
> +	 * very long time */
> +	if (*bflags & BLIST_NO_RSOC)
> +		sdev->no_report_opcodes = 1;
> +
>  	/* set the device running here so that slave configure
>  	 * may do I/O */
>  	ret = scsi_device_set_state(sdev, SDEV_RUNNING);
> diff --git a/include/scsi/scsi_devinfo.h b/include/scsi/scsi_devinfo.h
> index 447d2d7..1d5ba9e 100644
> --- a/include/scsi/scsi_devinfo.h
> +++ b/include/scsi/scsi_devinfo.h
> @@ -32,4 +32,5 @@
>  #define BLIST_ATTACH_PQ3	0x1000000 /* Scan: Attach to PQ3 devices */
>  #define BLIST_NO_DIF		0x2000000 /* Disable T10 PI (DIF) */
>  #define BLIST_SKIP_VPD_PAGES	0x4000000 /* Ignore SBC-3 VPD pages */
> +#define BLIST_NO_RSOC		0x8000000 /* don't try REPORT SUPPORTED OPERATION CODES */
>  #endif
> -- 
> 1.9.3
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
---end quoted text---
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2014-07-29 12:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-10 13:23 [Bug 79901] New: Extremely slow boot on Promise VTrak E610f due to sd_mod RSOC usage bugzilla-daemon
2014-07-10 13:54 ` Christoph Hellwig
2014-07-10 14:10   ` Janusz Dziemidowicz
2014-07-24 14:07 ` [Bug 79901] " bugzilla-daemon
2014-07-24 15:28   ` Christoph Hellwig
2014-07-29 12:53     ` Christoph Hellwig [this message]
2014-07-29 12:57       ` [PATCH] Do not issue SCSI RSOC command to Promise Vtrak E610f " Hannes Reinecke
2014-07-29 13:00       ` Martin K. Petersen
2014-07-29 13:14       ` Hannes Reinecke
2014-07-29 16:05 ` [Bug 79901] [BISECTED]Extremely slow boot on Promise VTrak E610f due to " bugzilla-daemon
2014-07-29 19:07 ` bugzilla-daemon
2014-07-29 21:56   ` Christoph Hellwig
2014-07-29 20:26 ` bugzilla-daemon
2014-07-29 20:26 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140729125353.GA19883@infradead.org \
    --to=hch@infradead.org \
    --cc=hare@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=rraptorr@nails.eu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.