From: Willem Riede <wrlk@riede.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.6.3-rc3 ide-tape: sleeping function called from invalid context
Date: Sun, 15 Feb 2004 16:43:26 -0500 [thread overview]
Message-ID: <20040215214326.GY4957@serve.riede.org> (raw)
Problem:
Feb 15 16:11:22 fallguy kernel: Debug: sleeping function called from invalid context at kernel/sched.c:1870
Feb 15 16:11:22 fallguy kernel: in_atomic():0, irqs_disabled():1
Feb 15 16:11:22 fallguy kernel: Call Trace:
Feb 15 16:11:22 fallguy kernel: [<c0127b91>] __might_sleep+0x91/0xc0
Feb 15 16:11:22 fallguy kernel: [<c0125c1a>] wait_for_completion+0x1a/0x190
Feb 15 16:11:22 fallguy kernel: [<e0ddb117>] idetape_initiate_read+0x1b7/0x250 [ide_tape]
Feb 15 16:11:22 fallguy kernel: [<e0dd9752>] idetape_wait_for_request+0x92/0xf0 [ide_tape]
Feb 15 16:11:22 fallguy kernel: [<e0dda992>] idetape_wait_first_stage+0xa2/0xd0 [ide_tape]
Feb 15 16:11:22 fallguy kernel: [<e0ddb2c7>] idetape_get_logical_blk+0x117/0x270 [ide_tape]
Feb 15 16:11:22 fallguy kernel: [<e0ddb47a>] idetape_add_chrdev_read_request+0x5a/0x200 [ide_tape]
Feb 15 16:11:22 fallguy kernel: [<e0dd9313>] idetape_copy_stage_to_user+0x83/0xf0 [ide_tape]
Feb 15 16:11:22 fallguy kernel: [<e0ddc39c>] idetape_chrdev_read+0x18c/0x240 [ide_tape]
Feb 15 16:11:22 fallguy kernel: [<c016c601>] vfs_read+0xd1/0x120
Feb 15 16:11:22 fallguy kernel: [<c016c858>] sys_read+0x38/0x60
Feb 15 16:11:22 fallguy kernel: [<c010bc3f>] syscall_call+0x7/0xb
Fix (against 2.6.3-rc3):
--- p0/drivers/ide/ide-tape.c 2004-02-15 16:35:31.000000000 -0500
+++ p1/drivers/ide/ide-tape.c 2004-02-15 16:36:58.000000000 -0500
@@ -3212,7 +3212,7 @@
#endif /* IDETAPE_DEBUG_BUGS */
rq->waiting = &wait;
tape->waiting = &wait;
- spin_unlock(&tape->spinlock);
+ spin_unlock_irq(&tape->spinlock);
wait_for_completion(&wait);
/* The stage and its struct request have been deallocated */
tape->waiting = NULL;
Regards, Willem Riede.
reply other threads:[~2004-02-15 21:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20040215214326.GY4957@serve.riede.org \
--to=wrlk@riede.org \
--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