Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752258Ab2BPJ5f (ORCPT ); Thu, 16 Feb 2012 04:57:35 -0500 Received: from kamaji.grokhost.net ([87.117.218.43]:46527 "EHLO kamaji.grokhost.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750887Ab2BPJ5b (ORCPT ); Thu, 16 Feb 2012 04:57:31 -0500 Message-ID: <4F3CD307.4020008@bootc.net> Date: Thu, 16 Feb 2012 09:57:27 +0000 From: Chris Boot User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Stefan Richter CC: linux1394-devel@lists.sourceforge.net, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org, agrover@redhat.com, clemens@ladisch.de, nab@linux-iscsi.org Subject: Re: [PATCH v2 05/11] firewire-sbp-target: Add sbp_configfs.c References: <1328989452-20921-1-git-send-email-bootc@bootc.net> <1329317248-94128-1-git-send-email-bootc@bootc.net> <1329317248-94128-6-git-send-email-bootc@bootc.net> <20120215202135.61165ee0@stein> In-Reply-To: <20120215202135.61165ee0@stein> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2822 Lines: 83 On 15/02/2012 19:21, Stefan Richter wrote: > On Feb 15 Chris Boot wrote: >> --- /dev/null >> +++ b/drivers/target/sbp/sbp_configfs.c >> @@ -0,0 +1,751 @@ >> +/* >> + * SBP2 target driver (SCSI over IEEE1394 in target mode) >> + * >> + * Copyright (C) 2011 Chris Boot >> + * >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of the GNU General Public License as published by >> + * the Free Software Foundation; either version 2 of the License, or >> + * (at your option) any later version. >> + * >> + * This program is distributed in the hope that it will be useful, >> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> + * GNU General Public License for more details. >> + * >> + * You should have received a copy of the GNU General Public License >> + * along with this program; if not, write to the Free Software Foundation, >> + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. >> + */ >> + >> +#define KMSG_COMPONENT "sbp_target" >> +#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include "sbp_base.h" >> +#include "sbp_fabric.h" >> +#include "sbp_management_agent.h" >> + >> +/* Local pointer to allocated TCM configfs fabric module */ >> +struct target_fabric_configfs *sbp_fabric_configfs; >> + >> +struct workqueue_struct *sbp_workqueue; > > #include goes before this. Yep. > [...] >> + sbp_workqueue = alloc_workqueue("firewire-sbp-target", WQ_UNBOUND, 0); >> + if (!sbp_workqueue) { >> + target_fabric_configfs_deregister(fabric); >> + return -ENOMEM; >> + } > > What are your specific requirements that you cannot use one of the > system-wide workqueues? Nothing specific, I just thought it was sensible to use your own workqueue if you put enough work into it. I'll switch to the system queues. -- Chris Boot bootc@bootc.net -- 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/