Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 259009 Details for
Bug 350753
app-cdr/cdemud-1.3.0 + sys-fs/vhba-20101015 + 2.6.37 = kernel oops and hard lock
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for kernel 2.6.37 compatibility
vhba-20101015-scsi-host-lock-push-down.patch (text/plain), 1.93 KB, created by
Alexandre Rostovtsev (RETIRED)
on 2011-01-06 09:07:07 UTC
(
hide
)
Description:
patch for kernel 2.6.37 compatibility
Filename:
MIME Type:
Creator:
Alexandre Rostovtsev (RETIRED)
Created:
2011-01-06 09:07:07 UTC
Size:
1.93 KB
patch
obsolete
>From 9ad7ec7fae387f05249b9f4e6accb3bc3b0b8b0f Mon Sep 17 00:00:00 2001 >From: Alexandre Rostovtsev <tetromino@gmail.com> >Date: Thu, 6 Jan 2011 03:39:26 -0500 >Subject: [PATCH] Make vhba compatible with kernel 2.6.37 SCSI host API > >Due to the SCSI host lock push-down changes introduced in 2.6.37 (see >http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=f281233d3eba15fb225d21ae2e228fd4553d824a >for more details), trying to use current vhba on 2.6.37 leads to oopses >and kernel panics - e.g. see http://bugs.gentoo.org/show_bug.cgi?id=350753 > >Add some #ifdefs to enable compatibility both with 2.6.37 and older API. >Note that if future kernel versions remove the DEF_SCSI_QCMD macro, this >issue will need to be revisited. > >Signed-off-by: Alexandre Rostovtsev <tetromino@gmail.com> >--- > vhba-module/vhba.c | 9 ++++++++- > 1 files changed, 8 insertions(+), 1 deletions(-) > >diff --git a/vhba-module/vhba.c b/vhba-module/vhba.c >index 059f6ce..9d13016 100644 >--- a/vhba-module/vhba.c >+++ b/vhba-module/vhba.c >@@ -27,6 +27,7 @@ > #include <linux/miscdevice.h> > #include <linux/poll.h> > #include <linux/slab.h> >+#include <linux/version.h> > #ifdef CONFIG_COMPAT > #include <linux/compat.h> > #endif >@@ -363,7 +364,7 @@ static void vhba_free_command(struct vhba_command *vcmd) > spin_unlock_irqrestore(&vhost->cmd_lock, flags); > } > >-static int vhba_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *)) >+static int vhba_queuecommand_lck(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *)) > { > struct vhba_device *vdev; > int retval; >@@ -388,6 +389,12 @@ static int vhba_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmn > return retval; > } > >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37) >+DEF_SCSI_QCMD(vhba_queuecommand) >+#else >+#define vhba_queuecommand vhba_queuecommand_lck >+#endif >+ > static int vhba_abort(struct scsi_cmnd *cmd) > { > struct vhba_device *vdev; >-- >1.7.3.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 350753
:
258993
| 259009 |
259423
|
259748