linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Mark Salyzyn <Mark_Salyzyn@adaptec.com>, jejb@steeleye.com
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH] aacraid: use kthread_ API
Date: Tue, 14 Feb 2006 19:00:41 +0100	[thread overview]
Message-ID: <20060214180041.GA19306@lst.de> (raw)
In-Reply-To: <20060214174506.GA18919@lst.de>

On Tue, Feb 14, 2006 at 06:45:06PM +0100, Christoph Hellwig wrote:
> Use the kthread_ API instead of opencoding lots of hairy code for kernel
> thread creation and teardown.

Followon patch to avoid the hardcoded aacraid string as kthread_run
argument.


Index: linux-2.6/drivers/scsi/aacraid/linit.c
===================================================================
--- linux-2.6.orig/drivers/scsi/aacraid/linit.c	2006-02-14 16:24:17.000000000 +0100
+++ linux-2.6/drivers/scsi/aacraid/linit.c	2006-02-14 18:59:21.000000000 +0100
@@ -823,7 +823,7 @@
 	/*
 	 *	Start any kernel threads needed
 	 */
-	aac->thread = kthread_run(aac_command_thread, aac, "aacraid");
+	aac->thread = kthread_run(aac_command_thread, aac, AAC_DRIVERNAME);
 	if (IS_ERR(aac->thread)) {
 		printk(KERN_ERR "aacraid: Unable to create command thread.\n");
 		error = PTR_ERR(aac->thread);

  reply	other threads:[~2006-02-14 18:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-14 17:45 [PATCH] aacraid: use kthread_ API Christoph Hellwig
2006-02-14 18:00 ` Christoph Hellwig [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-02-14 17:53 Salyzyn, Mark
2006-02-14 17:54 ` Christoph Hellwig

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=20060214180041.GA19306@lst.de \
    --to=hch@lst.de \
    --cc=Mark_Salyzyn@adaptec.com \
    --cc=jejb@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;
as well as URLs for NNTP newsgroup(s).