public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <mikenc@us.ibm.com>
To: Mike Christie <mikenc@us.ibm.com>
Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>,
	Linux-SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: SCSI API generics (was Re: [PATCH] add block/unblock to iscsi class)
Date: Wed, 23 Feb 2005 16:03:10 -0800	[thread overview]
Message-ID: <421D19BE.1060105@us.ibm.com> (raw)
In-Reply-To: <421D192D.4060400@us.ibm.com>

Mike Christie wrote:
> Andrew Vasquez wrote:
> 
>> On Wed, 23 Feb 2005, Mike Christie wrote:
>>
>>
>>> Andrew Vasquez wrote:
>>>
>>>> Speaking of which, are there any major objections to the patches
>>>> proposed here:
>>>>
>>>> Add scsi_target_[un]block() and scsi_target_remove() generics
>>>> http://marc.theaimsgroup.com/?l=linux-scsi&m=110867050306738&w=2
>>>>
>>>> [RFC] adding per scsi-host workqueues for defered processing
>>>> http://marc.theaimsgroup.com/?l=linux-scsi&m=110903148407438&w=2
>>>>
>>>
>>> When using single_threaded_workqueues do all single threaded ones
>>> in the system use the same cpu_workqueue_struct? Will this be
>>> a potential bottleneck if we end up using the workqueue for more
>>> operations in the future?
>>
>>
>>
>> The kernel-thread that is created for a single-threaded workqueue is
>> not bound to any particular CPU:
>>
>>     kthread.c:kthread()
>>
>>     ...   
>>         /* By default we can run anywhere, unlike keventd. */
>>         set_cpus_allowed(current, CPU_MASK_ALL);
>>
> 
> My question is not about which cpu it is run on.
> I am asking about the cpu_workqueue_struct. In
> create_workqueue_thread cpu always equals zero so
> later when it is run it can be on any cpu but every
> single threaded workqueue will access the same
> cpu_workqueue_struct.
> 

Oh wait nevermind that too. I should read the code more
closely next time.


      reply	other threads:[~2005-02-24  0:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-23  8:19 [PATCH] add block/unblock to iscsi class Mike Christie
2005-02-23 18:17 ` SCSI API generics (was Re: [PATCH] add block/unblock to iscsi class) Andrew Vasquez
2005-02-23 19:55   ` Mike Christie
2005-02-23 22:06     ` Andrew Vasquez
2005-02-24  0:00       ` Mike Christie
2005-02-24  0:03         ` Mike Christie [this message]

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=421D19BE.1060105@us.ibm.com \
    --to=mikenc@us.ibm.com \
    --cc=andrew.vasquez@qlogic.com \
    --cc=linux-scsi@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