The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Shaohua Li <shaohua.li@intel.com>
To: Tiju Jacob <jacobtiju@gmail.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Multi-partition block layer behaviour
Date: Tue, 01 Nov 2011 08:29:22 +0800	[thread overview]
Message-ID: <1320107362.22361.185.camel@sli10-conroe> (raw)
In-Reply-To: <CADAg6uwi8bgo3gQuWPeTHeD44biRR4=0E0BjvZradQMtfMCigA@mail.gmail.com>

On Mon, 2011-10-31 at 18:21 +0800, Tiju Jacob wrote:
> >> ok, thanks. So this means the elevator is switching in the test. How
> >> about below patch:
> >>
> >> diff --git a/block/elevator.c b/block/elevator.c
> >> index a3b64bc..e14824a 100644
> >> --- a/block/elevator.c
> >> +++ b/block/elevator.c
> >> @@ -683,8 +683,13 @@ void __elv_add_request(struct request_queue *q, struct request *rq, int where)
> >>                 * - Usually, back inserted requests won't be merged
> >>                 *   with anything.  There's no point in delaying queue
> >>                 *   processing.
> >> +                * If elevator is switching, doesn't need run the queue.
> >> +                * elevator switching will run it anyway. And this could
> >> +                * cause warning since the code might run in atomic
> >> +                * environment(blk_flush_plug_list() callbed in schedule())
> >>                 */
> >> -               __blk_run_queue(q);
> >> +               if (!test_bit(QUEUE_FLAG_ELVSWITCH, &q->queue_flags))
> >> +                       __blk_run_queue(q);
> >>                break;
> >>
> >>        case ELEVATOR_INSERT_SORT_MERGE:
> >>
> >>
> > oh, wait. We should have no this issue with latest kernel, because
> > blk_schedule_flush_plug is moved out of schedule atomic environment. please
> > try a latest kernel, for example, 3.1.
> >
> 
> Even after applying the above patch, I am getting the same error. We
> have to use the linux 3.0.* kernel series. So is there a fix for the
> 3.0 series?
> We'll defenetly check with the 3.1 kernel and let know.
please ignore the patch. There is a fix in upstream:
9c40cef2b799f9b5e7fa5de4
and it's marked -stable, so it will go to 3.0 stable.
if 3.1 kernel doesn't work, please report back with a log.

Thanks,
Shaohua


  reply	other threads:[~2011-11-01  0:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-26  5:12 Multi-partition block layer behaviour Tiju Jacob
2011-10-26  5:42 ` Shaohua Li
2011-10-26 10:10   ` Tiju Jacob
2011-10-27  0:42     ` Shaohua Li
2011-10-31  4:35       ` Tiju Jacob
2011-10-31  5:39         ` Shaohua Li
2011-10-31  6:14           ` Shaohua Li
2011-10-31 10:21             ` Tiju Jacob
2011-11-01  0:29               ` Shaohua Li [this message]
2011-11-03 11:18                 ` Tiju Jacob

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=1320107362.22361.185.camel@sli10-conroe \
    --to=shaohua.li@intel.com \
    --cc=jacobtiju@gmail.com \
    --cc=linux-kernel@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