public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Stekloff <dsteklof@us.ibm.com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] sdev_printk for ULDs, example with sd
Date: Thu, 22 Jan 2004 12:39:53 -0800	[thread overview]
Message-ID: <200401221239.53227.dsteklof@us.ibm.com> (raw)
In-Reply-To: <1074802104.1877.58.camel@mulgrave>

On Thursday 22 January 2004 12:08 pm, James Bottomley wrote:
> On Thu, 2004-01-22 at 14:44, Daniel Stekloff wrote:
> > In my recent post concerning sdev_printk I mentioned sdev_printk was
> > useful for the mid-layer and LLDs. The macro is also useful for Upper
> > Level Drivers as well. He's a patch adding sdev_printk to sd. Sample
> > output includes:
>
> Well, the thing about this is that it's a slippery slope that leads into
> posix logging.  This recently came up in network as well (for
> netdev_printk()):
>
> http://marc.theaimsgroup.com/?t=107454443000004&r=1&w=2
>
> The principle is sound, but I think the framework for doing it would
> have to cross all subsystems and be nicely extensible.  I'd really like
> to see us have some idea of the back end infrastructure before we do
> something that we'll then have to change again.
>
> James


Hi James,

Thank you for your comments. If you're referring to the Event Logging project, 
their logging infrastructure could plug into the dev macros without impacting 
driver or subsystem changes. They would only need to patch in where 
sdev_printk() is defined in scsi_device.h. The same is true for dev_printk in 
device.h and the proposed netdev_printk that the link refers to. Drivers 
wouldn't need to be changed and could continue to use the macros. We're 
really just building upon using the device structure and dev_printk macro.

I'm not sure why different macros for different subsystems is an issue, the 
different macros take advantage of specific subsystem information. The 
sdev_printk gives benefit of working with the scsi_device structure and 
prints information to identify a scsi device. The dev_printk macro could be 
used in the mid-layer in some situations, but there are places in scsi_scan.c 
where the device->driver struct hasn't been initialized, which would make 
dev_printk unusable at those points.

I'm not sure of other infrastructures in the works. 

Thanks,

Dan



  reply	other threads:[~2004-01-22 20:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-19 21:55 [PATCH] sdev_printk - scsi_device helper macro Daniel Stekloff
2004-01-22 19:44 ` [PATCH] sdev_printk for ULDs, example with sd Daniel Stekloff
2004-01-22 20:08   ` James Bottomley
2004-01-22 20:39     ` Daniel Stekloff [this message]
2004-01-22 20:41     ` Mike Anderson

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=200401221239.53227.dsteklof@us.ibm.com \
    --to=dsteklof@us.ibm.com \
    --cc=James.Bottomley@SteelEye.com \
    --cc=linux-scsi@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox