Linux NFS development
 help / color / mirror / Atom feed
From: Gabriel Barazer <gabriel@oxeva.fr>
To: Neil Brown <neilb@suse.de>
Cc: nfs@lists.sourceforge.net
Subject: Re: mountd randomly crash and panic the server
Date: Wed, 02 May 2007 11:03:17 +0200	[thread overview]
Message-ID: <463853D5.1020106@oxeva.fr> (raw)
In-Reply-To: <17974.33522.70308.585198@notabene.brown>

On 05/01/2007 1:59:46 +0200, Neil Brown <neilb@suse.de> wrote:
> 
>>   related kernel panics, which are, I suppose, not linked to the NFS 
>> problem (I still mention it because unrelated but linked problems like 
>> this sometimes happens)
> 
> CFQ panics ?  In cfq_dispatch_insert by any chance?
> 
> This patch from Jens Axboe might be what you need.
> 

The problem is exactly related to this function : Is this bug related to 
the NFS subsystem, or am I lucky and it appears you work on the CFQ 
scheduler as well ? :) I can test this patch, but since this bug panic() 
the kernel, I can't afford to hang the file server very often.

For now I have changed the scheduler to deadline with the 
/sys/block/<device>/queue/scheduler file. Is this patch already sent to 
the upstream kernel sources ?

Thanks,

Gabriel

> NeilBrown
> 
> diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
> index 9e37971..f965be7 100644
> --- a/block/cfq-iosched.c
> +++ b/block/cfq-iosched.c
> @@ -532,6 +532,11 @@ static void cfq_add_rq_rb(struct request *rq)
>  
>  	if (!cfq_cfqq_on_rr(cfqq))
>  		cfq_add_cfqq_rr(cfqd, cfqq);
> +
> +	/*
> +	 * check if this request is a better next-serve candidate
> +	 */
> +	cfqq->next_rq = cfq_choose_req(cfqd, cfqq->next_rq, rq);
>  }
>  
>  static inline void
> @@ -1639,12 +1644,6 @@ cfq_rq_enqueued(struct cfq_data *cfqd, struct cfq_queue *cfqq,
>  		cfqq->meta_pending++;
>  
>  	/*
> -	 * check if this request is a better next-serve candidate)) {
> -	 */
> -	cfqq->next_rq = cfq_choose_req(cfqd, cfqq->next_rq, rq);
> -	BUG_ON(!cfqq->next_rq);
> -
> -	/*
>  	 * we never wait for an async request and we don't allow preemption
>  	 * of an async request. so just return early
>  	 */
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2007-05-02  9:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-11 15:11 mountd randomly crash and panic the server Gabriel Barazer
2007-04-16  9:26 ` Gabriel Barazer
2007-04-16 10:47   ` Neil Brown
2007-04-16 14:07     ` Gabriel Barazer
2007-04-17  1:23       ` Neil Brown
2007-04-30 23:46         ` Gabriel Barazer
2007-04-30 23:59           ` Neil Brown
2007-05-02  9:03             ` Gabriel Barazer [this message]
2007-05-02 11:29               ` Neil Brown
  -- strict thread matches above, loose matches on Subject: below --
2007-04-11 15:12 Gabriel Barazer

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=463853D5.1020106@oxeva.fr \
    --to=gabriel@oxeva.fr \
    --cc=neilb@suse.de \
    --cc=nfs@lists.sourceforge.net \
    /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