login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
30
Re: [PATCH 7/9] scsi: megaraid_sas - Driver created the self work queue for OCR
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Tomas Henzl
Subject:
Re: [PATCH 7/9] scsi: megaraid_sas - Driver created the self work queue for OCR
Date: Tuesday, November 30, 2010 - 9:11 am
On 11/19/2010 06:37 PM, Yang, Bo wrote:
quoted text
> Driver created the owner work queue (don't use global work queue). This queue will be used for online controller reset routine. > > Signed-off-by Bo Yang<bo.yang@lsi.com> > > --- > drivers/scsi/megaraid/megaraid_sas.c | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff -rupN old/drivers/scsi/megaraid/megaraid_sas.c > new/drivers/scsi/megaraid/megaraid_sas.c --- > old/drivers/scsi/megaraid/megaraid_sas.c 2010-11-17 13:46:11.000000000 > -0500 +++ new/drivers/scsi/megaraid/megaraid_sas.c 2010-11-17 > 13:47:46.000000000 -0500 @@ -108,6 +108,7 @@ static struct > megasas_mgmt_info megasas_ static struct fasync_struct > *megasas_async_queue; static DEFINE_MUTEX(megasas_async_queue_mutex); > +static struct workqueue_struct *megasas_ocr_wq; static int > megasas_poll_wait_aen; static > DECLARE_WAIT_QUEUE_HEAD(megasas_poll_wait); static u32 > support_poll_for_event; @@ -2435,7 +2436,7 @@ > megasas_deplete_reply_queue(struct megas printk(KERN_NOTICE "megasas: > fwState=%x, stage:%d\n", fw_state, instance->adprecovery); - > schedule_work(&instance->work_init); + queue_work(megasas_ocr_wq, > &instance->work_init); return IRQ_HANDLED; } else { @@ -5157,6 > +5158,11 @@ static int __init megasas_init(void) goto err_pcidrv; } + > megasas_ocr_wq = create_workqueue("megasas_ocr"); + + if ( > !megasas_ocr_wq ) + printk(KERN_DEBUG "megasas: Failed to create > workqueue.\n"); +
What happens later, when you pass the null pointer to the queue_work ? I'm not sure this will work.
quoted text
> rval = driver_create_file(&megasas_pci_driver.driver, > &driver_attr_version); if (rval) @@ -5228,6 +5234,11 @@ static void > __exit megasas_exit(void) &driver_attr_release_date); > driver_remove_file(&megasas_pci_driver.driver, &driver_attr_version); > + if (megasas_ocr_wq) { + destroy_workqueue(megasas_ocr_wq); + > megasas_ocr_wq = NULL; + } + > pci_unregister_driver(&megasas_pci_driver); > unregister_chrdev(megasas_mgmt_majorno, "megaraid_sas_ioctl"); }
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/12] scsi: megaraid_sas - Online Controller Reset ...
, Yang, Bo
, (Wed Jun 9, 7:34 pm)
Re: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, Yinghai Lu
, (Fri Jun 18, 2:18 pm)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, Yang, Bo
, (Fri Jun 18, 2:21 pm)
Re: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, Yinghai Lu
, (Fri Jun 18, 2:37 pm)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, Yang, Bo
, (Fri Jun 18, 2:56 pm)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, James Bottomley
, (Sun Jun 20, 7:54 am)
Re: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, James Bottomley
, (Sun Jun 20, 8:01 am)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, Yang, Bo
, (Sun Jun 20, 12:27 pm)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, James Bottomley
, (Sun Jun 20, 12:47 pm)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, Yang, Bo
, (Sun Jun 20, 1:19 pm)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, James Bottomley
, (Sun Jun 20, 1:48 pm)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, Yang, Bo
, (Tue Jul 20, 6:08 am)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, Yang, Bo
, (Fri Jul 30, 11:53 am)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, James Bottomley
, (Sat Jul 31, 10:46 am)
[PATCH 1/12] scsi: megaraid_sas - Online Controller Reset ...
, Yang, Bo
, (Thu Aug 5, 12:47 pm)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, Yang, Bo
, (Thu Aug 5, 1:44 pm)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, James Bottomley
, (Thu Aug 5, 5:36 pm)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, Yang, Bo
, (Thu Aug 12, 8:20 am)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, Yang, Bo
, (Mon Aug 16, 7:22 am)
RE: [PATCH 1/12] scsi: megaraid_sas - Online Controller Re ...
, James Bottomley
, (Mon Aug 16, 8:06 am)
[PATCH 1/9] scsi: megaraid_sas - Change the time format du ...
, Yang, Bo
, (Fri Nov 19, 9:33 am)
[PATCH 2/9] scsi: megaraid_sas - Driver only report tape d ...
, Yang, Bo
, (Fri Nov 19, 9:53 am)
[PATCH 3/9] scsi: megaraid_sas - Driver will scan device a ...
, Yang, Bo
, (Fri Nov 19, 10:03 am)
[PATCH 4/9] scsi: megaraid_sas - Driver provide the versio ...
, Yang, Bo
, (Fri Nov 19, 10:08 am)
[PATCH 5/9] scsi: megaraid_sas - report different io sect ...
, Yang, Bo
, (Fri Nov 19, 10:23 am)
[PATCH 6/9] scsi: megaraid_sas - Add the online reset to ...
, Yang, Bo
, (Fri Nov 19, 10:29 am)
[PATCH 7/9] scsi: megaraid_sas - Driver created the self w ...
, Yang, Bo
, (Fri Nov 19, 10:37 am)
[PATCH 8/9] scsi: megaraid_sas - Driver take some workload ...
, Yang, Bo
, (Fri Nov 19, 10:43 am)
[PATCH 9/9] scsi: megaraid_sas - Documentation and driver ...
, Yang, Bo
, (Fri Nov 19, 10:50 am)
Re: [PATCH 8/9] scsi: megaraid_sas - Driver take some work ...
, James Bottomley
, (Fri Nov 19, 10:53 am)
RE: [PATCH 8/9] scsi: megaraid_sas - Driver take some work ...
, Yang, Bo
, (Wed Nov 24, 8:22 am)
Re: [PATCH 1/9] scsi: megaraid_sas - Change the time forma ...
, Tomas Henzl
, (Tue Nov 30, 8:21 am)
Re: [PATCH 6/9] scsi: megaraid_sas - Add the online reset ...
, Tomas Henzl
, (Tue Nov 30, 8:36 am)
Re: [PATCH 8/9] scsi: megaraid_sas - Driver take some work ...
, Tomas Henzl
, (Tue Nov 30, 8:57 am)
Re: [PATCH 7/9] scsi: megaraid_sas - Driver created the se ...
, Tomas Henzl
, (Tue Nov 30, 9:11 am)
RE: [PATCH 7/9] scsi: megaraid_sas - Driver created the se ...
, Yang, Bo
, (Tue Nov 30, 11:05 am)
Re: [PATCH 7/9] scsi: megaraid_sas - Driver created the se ...
, Tomas Henzl
, (Wed Dec 1, 5:19 am)
RE: [PATCH 7/9] scsi: megaraid_sas - Driver created the se ...
, Yang, Bo
, (Wed Dec 1, 8:55 am)
Re: [PATCH 2/9] scsi: megaraid_sas - Driver only report ta ...
, James Bottomley
, (Thu Dec 9, 10:07 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Christoph Lameter
[PATCH 1/2] Make page->private usable in compound pages V1
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Jesse Barnes
Re: PCI probing changes
git
:
Jakub Narebski
Re: GSoC 2008 - Mentors Wanted!
Jan Harkes
Re: git-svn and huge data and modifying the git-svn-HEAD branch directly
Andy Parkins
git-fetch fails with error code 128
Marcus Griep
Re: [PATCH 1/3] Git.pm: Add faculties to allow temp files to be cached
Junio C Hamano
Re: [JGIT PATCH 2/2] Decrease the fetch pack client buffer to the lower minimum
git-commits-head
:
Linux Kernel Mailing List
ARM: 5970/1: nomadik-gpio: fix spinlock usage
Linux Kernel Mailing List
sh-sci: update receive error handling for muxed irqs
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
linux-netdev
:
Eric Dumazet
[PATCH] net: ALIGN/PTR_ALIGN cleanup in alloc_netdev_mq()/netdev_priv()
Patrick McHardy
[NET_SCHED]: sch_ingress: remove netfilter support
Rose, Gregory V
RE: __bad_udelay in network driver breaks build
Patrick McHardy
Re: no reassembly for outgoing packets on RAW socket
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
ropers
Re: Real men don't attack straw men
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Marcus Andree
Re: This is what Linus Torvalds calls openBSD crowd
Lars D. Noodén
Re: sshd.config and AllowUsers
Henning Brauer
Re: Sun Blade 1000?
Colocation donated by:
Syndicate