Skip to content

Instantly share code, notes, and snippets.

@r4um
Created January 8, 2013 09:59
Show Gist options
  • Save r4um/4482588 to your computer and use it in GitHub Desktop.
Save r4um/4482588 to your computer and use it in GitHub Desktop.
aacraid 1.1.7 28000 patch for 2.6.38
diff -r -U1 foo/usr/src/aacraid-1.1.7.28000/commctrl.c /usr/src/aacraid-1.1.7.28000/commctrl.c
--- foo/usr/src/aacraid-1.1.7.28000/commctrl.c 2011-04-18 22:21:41.000000000 +0000
+++ /usr/src/aacraid-1.1.7.28000/commctrl.c 2013-01-08 09:56:55.000000000 +0000
@@ -448,3 +448,4 @@
*/
- init_MUTEX_LOCKED(&fibctx->wait_sem);
+ sema_init(&fibctx->wait_sem, 0);
+
fibctx->wait = 0;
diff -r -U1 foo/usr/src/aacraid-1.1.7.28000/commsup.c /usr/src/aacraid-1.1.7.28000/commsup.c
--- foo/usr/src/aacraid-1.1.7.28000/commsup.c 2011-04-18 22:21:41.000000000 +0000
+++ /usr/src/aacraid-1.1.7.28000/commsup.c 2013-01-08 09:57:34.000000000 +0000
@@ -194,3 +194,3 @@
fibptr->next = fibptr+1; /* Forward chain the fibs */
- init_MUTEX_LOCKED(&fibptr->event_wait);
+ sema_init(&fibptr->event_wait, 0);
spin_lock_init(&fibptr->event_lock);
diff -r -U1 foo/usr/src/aacraid-1.1.7.28000/linit.c /usr/src/aacraid-1.1.7.28000/linit.c
--- foo/usr/src/aacraid-1.1.7.28000/linit.c 2011-04-18 22:21:41.000000000 +0000
+++ /usr/src/aacraid-1.1.7.28000/linit.c 2013-01-08 09:35:37.000000000 +0000
@@ -3056,3 +3056,3 @@
.owner = THIS_MODULE,
- .ioctl = aac_cfg_ioctl,
+ .unlocked_ioctl = aac_cfg_ioctl,
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,11))
@r4um
Copy link
Author

r4um commented Jan 8, 2013

Not needed with 1.1.7_28700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment