From: Pavel Machek <pavel@suse.cz>
To: andrea@suse.de, kernel list <linux-kernel@vger.kernel.org>
Subject: Properly stop kernel threads on aic7xxx
Date: Thu, 1 Apr 2004 19:08:08 +0200 [thread overview]
Message-ID: <20040401170808.GA696@elf.ucw.cz> (raw)
Hi!
This is totally untested patch that should make aic7xxx one step
closer to working with software suspend... Plus it kills ugly #if in
the process.
Pavel
--- tmp/linux/drivers/scsi/aic7xxx/aic79xx_osm.c 2004-03-11 18:11:12.000000000 +0100
+++ linux/drivers/scsi/aic7xxx/aic79xx_osm.c 2004-04-01 19:01:29.000000000 +0200
@@ -2581,17 +2581,8 @@
* Complete thread creation.
*/
lock_kernel();
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,60)
- /*
- * Don't care about any signals.
- */
- siginitsetinv(¤t->blocked, 0);
-
- daemonize();
- sprintf(current->comm, "ahd_dv_%d", ahd->unit);
-#else
daemonize("ahd_dv_%d", ahd->unit);
-#endif
+ current->flags |= PF_IOTHREAD;
unlock_kernel();
while (1) {
--- tmp/linux/drivers/scsi/aic7xxx/aic7xxx_osm.c 2004-03-11 18:11:12.000000000 +0100
+++ linux/drivers/scsi/aic7xxx/aic7xxx_osm.c 2004-04-01 19:01:08.000000000 +0200
@@ -2286,17 +2286,8 @@
* Complete thread creation.
*/
lock_kernel();
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
- /*
- * Don't care about any signals.
- */
- siginitsetinv(¤t->blocked, 0);
-
- daemonize();
- sprintf(current->comm, "ahc_dv_%d", ahc->unit);
-#else
daemonize("ahc_dv_%d", ahc->unit);
-#endif
+ current->flags |= PF_IOTHREAD;
unlock_kernel();
while (1) {
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
next reply other threads:[~2004-04-01 17:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-01 17:08 Pavel Machek [this message]
2004-04-02 0:35 ` Properly stop kernel threads on aic7xxx Andrea Arcangeli
2004-04-02 1:04 ` Andrew Morton
2004-04-02 1:09 ` Andrea Arcangeli
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=20040401170808.GA696@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=andrea@suse.de \
--cc=linux-kernel@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