All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Andrew Vasquez <andrew.vasquez@qlogic.com>
Cc: Drew Winstel <raw@dslr.net>, linux-scsi@vger.kernel.org
Subject: Re: qla2xxx: does not respond to SCSI_IOCTL_PROBE_HOST
Date: Thu, 25 Aug 2005 17:09:02 +0100	[thread overview]
Message-ID: <20050825160902.GA17366@infradead.org> (raw)
In-Reply-To: <20050824211348.GH8205@plap.qlogic.org>

On Wed, Aug 24, 2005 at 02:13:48PM -0700, Andrew Vasquez wrote:
> /proc support has been stripped from the qla2xxx driver.  So,
> hostt->present is never incremented:
> 
> 	void scsi_proc_hostdir_add(struct scsi_host_template *sht)
> 	{
> 		if (!sht->proc_info)
> 			return;
> 
> 		down(&global_host_template_sem);
> 		if (!sht->present++) {
> 			...
> 
> SCSI_IOCTL_PROBE_HOST returns hostt->present:
> 
> 	static int ioctl_probe(struct Scsi_Host *host, void __user *buffer)
> 	{
> 		unsigned int len, slen;
> 		const char *string;
> 		int temp = host->hostt->present;
> 
> 		...
> 		return temp;
> 
> Not sure how we want to fix it, perhaps for backwards compatibility,
> increment present regardless of the value of proc_info.
> 
> Something like this, perhaps (untested)?

No, please not.  Just remove the ->present check in the ioctl, with
the hotplug mode in place we should consider an host always probed
for this legacy.

And while we're at it we should add deprecation warnings for most of
the crufy ioctls in scsi_ioctl.c..


  parent reply	other threads:[~2005-08-25 16:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-24 20:34 qla2xxx: does not respond to SCSI_IOCTL_PROBE_HOST Drew Winstel
2005-08-24 21:13 ` Andrew Vasquez
2005-08-25 16:02   ` Drew Winstel
2005-08-25 16:09   ` Christoph Hellwig [this message]
2005-08-25 17:02     ` Drew Winstel

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=20050825160902.GA17366@infradead.org \
    --to=hch@infradead.org \
    --cc=andrew.vasquez@qlogic.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=raw@dslr.net \
    /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.