[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <254156.53235.qm@web37608.mail.mud.yahoo.com>
Date: Mon, 25 Oct 2010 08:41:20 -0700 (PDT)
From: Alex Dubov <oakad@...oo.com>
To: Maxim Levitsky <maximlevitsky@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
Maxim Levitsky <maximlevitsky@...il.com>
Subject: Re: [PATCH 13/29] memstick: core: stop passing pointer to card->current_mrq
--- On Fri, 22/10/10, Maxim Levitsky <maximlevitsky@...il.com> wrote:
> From: Maxim Levitsky <maximlevitsky@...il.com>
> Subject: [PATCH 13/29] memstick: core: stop passing pointer to card->current_mrq
> To: "Alex Dubov" <oakad@...oo.com>
> Cc: "Andrew Morton" <akpm@...ux-foundation.org>, "LKML" <linux-kernel@...r.kernel.org>, "Maxim Levitsky" <maximlevitsky@...il.com>
> Received: Friday, 22 October, 2010, 4:53 PM
> This cleans up a lot of code and
> makes the assumption
> (*mrq == &card->current_mrq) official.
>
> Signed-off-by: Maxim Levitsky <maximlevitsky@...il.com>
> ---
Unfortunately, the description does not match the patch.
While the main optimization (merging req and card arguments for good) is
fully reasonable given the posterior knowledge of MSPro evolution, this
patch introduces some functional changes as well, which can not be
considered to be a pure cleanup. Some WARN_ONs also appear to be misplaced:
> if (msb->block_req) {
> - mspro_block_complete_req(card, (*mrq)->error);
> + mspro_block_complete_req(card, mrq->error);
> error = mspro_block_issue_req(card, false);
>
> - if (!msb->block_req) {
> + if (error) {
> + WARN_ON(msb->block_req);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists