From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Bartlomiej Zolnierkiewicz To: Linus Walleij Cc: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter , Paolo Valente , Chunyan Zhang , Baolin Wang , linux-block@vger.kernel.org, Jens Axboe , Christoph Hellwig , Arnd Bergmann Subject: Re: [PATCH 14/16] mmc: queue: get/put struct mmc_queue_req Date: Tue, 28 Feb 2017 19:21:47 +0100 Message-id: <5050667.2Ad8qcsgns@amdc3058> In-reply-to: <20170209153403.9730-15-linus.walleij@linaro.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii References: <20170209153403.9730-1-linus.walleij@linaro.org> <20170209153403.9730-15-linus.walleij@linaro.org> List-ID: On Thursday, February 09, 2017 04:34:01 PM Linus Walleij wrote: > The per-hardware-transaction struct mmc_queue_req is assigned > from a pool of 2 requests using a current/previous scheme and > then swapped around. > > This is confusing, especially if we need more than two to make > our work efficient and parallel. > > Rewrite the mechanism to have a pool of struct mmc_queue_req > and take one when we need one and put it back when we don't > need it anymore. > > Signed-off-by: Linus Walleij Reviewed-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics