Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759541Ab3GaKdi (ORCPT ); Wed, 31 Jul 2013 06:33:38 -0400 Received: from mail-qa0-f50.google.com ([209.85.216.50]:49882 "EHLO mail-qa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755513Ab3GaKdg (ORCPT ); Wed, 31 Jul 2013 06:33:36 -0400 Date: Wed, 31 Jul 2013 06:33:32 -0400 From: Tejun Heo To: Shaohua Li Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, neilb@suse.de, djbw@fb.com Subject: Re: [patch 1/3] raid5: offload stripe handle to workqueue Message-ID: <20130731103332.GE2810@htj.dyndns.org> References: <20130730055207.698660010@kernel.org> <20130730055257.527231772@kernel.org> <20130730125306.GC2599@htj.dyndns.org> <20130730130708.GA30352@kernel.org> <20130730135751.GD12016@htj.dyndns.org> <20130731012434.GA1504@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130731012434.GA1504@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 22 Hello, On Wed, Jul 31, 2013 at 09:24:34AM +0800, Shaohua Li wrote: > stripe is the work unit actually. As I said, if I queue a work for each stripe, > just queue_work() will make the system blast because of the pwq->pool->lock > contention. dispatching one work has another side effect that I can't add block Hmmm.... I see. I'm not familiar with the code base and could be missing something but how does the custom stripe dispatch queue synchronize? Doesn't that make use of a lock anyway? If so, how would scheduling separate work items be worse? Also, can you please elaborate the block plug part? Thanks. -- tejun -- 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/