From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Lord Subject: Re: [RFT PATCH] amiga, atari floppy: Use one request queue per disk Date: Fri, 24 Sep 2010 17:41:03 -0400 Message-ID: <4C9D1AEF.6090307@pobox.com> References: <1285271646-2768-1-git-send-email-vgoyal@redhat.com> <4C9CEFD6.3000106@kernel.dk> <20100924202106.GC7145@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060005010505000109070903" Return-path: Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:45384 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753463Ab0IXVlO (ORCPT ); Fri, 24 Sep 2010 17:41:14 -0400 In-Reply-To: <20100924202106.GC7145@redhat.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Jens Axboe Cc: Vivek Goyal , linux-kernel@vger.kernel.org, hch@lst.de, IDE/ATA development list This is a multi-part message in MIME format. --------------060005010505000109070903 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Ensure that 'sysctl_hung_task_timeout_secs' is defined even when CONFIG_DETECT_HUNG_TASK is not set. This way we can safely reference it without need for #ifdefs elsewhere in the code. eg. in block/blk-exec.c Signed-off-by: Mark Lord Jens: use the attachment. My email client is having a fit today. --- a/include/linux/sched.h 2010-09-20 19:56:53.000000000 -0400 +++ b/include/linux/sched.h 2010-09-24 17:22:01.707291995 -0400 @@ -336,6 +336,9 @@ extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); +#else +/* Avoid need for ifdefs elsewhere in the code */ +enum { sysctl_hung_task_timeout_secs = 0 }; #endif /* Attach to any functions which should be ignored in wchan output. */ --------------060005010505000109070903 Content-Type: text/x-patch; name="fix_blk_exec_compile_error.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="fix_blk_exec_compile_error.patch" --- a/include/linux/sched.h 2010-09-20 19:56:53.000000000 -0400 +++ b/include/linux/sched.h 2010-09-24 17:22:01.707291995 -0400 @@ -336,6 +336,9 @@ extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); +#else +/* Avoid need for ifdefs elsewhere in the code */ +enum { sysctl_hung_task_timeout_secs = 0 }; #endif /* Attach to any functions which should be ignored in wchan output. */ --------------060005010505000109070903--