Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756218Ab3HWThA (ORCPT ); Fri, 23 Aug 2013 15:37:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13535 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755844Ab3HWTg7 (ORCPT ); Fri, 23 Aug 2013 15:36:59 -0400 Subject: Re: [RFC PATCH] scsi: Add failfast mode to avoid infinite retry loop From: Ewan Milne Reply-To: emilne@redhat.com To: James Bottomley Cc: Eiichi Tsukata , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org In-Reply-To: <1377263977.2095.1.camel@dabdike> References: <20130819093925.7867.19221.stgit@ltc223.sdl.hitachi.co.jp> <1376922616.2069.9.camel@dabdike.int.hansenpartnership.com> <5213172E.1060905@hitachi.com> <1377022167.3872.13.camel@localhost.localdomain> <52172721.1040203@hitachi.com> <1377263977.2095.1.camel@dabdike> Content-Type: text/plain; charset="UTF-8" Organization: Red Hat Date: Fri, 23 Aug 2013 15:36:55 -0400 Message-ID: <1377286615.3872.25.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1819 Lines: 48 On Fri, 2013-08-23 at 06:19 -0700, James Bottomley wrote: > On Fri, 2013-08-23 at 18:10 +0900, Eiichi Tsukata wrote: > > Yes, basically the device should be offlined on error detection. > > Just offlining the disk is enough when an error occurs on "not" os-installed > > system disk. Panic is going too far on such case. > > > > However, in a clustered environment where computers use each its own > > disk and > > do not share the same disk, calling panic() will be suitable when an > > error > > occurs in system disk. > > However, when not in a clustered environment, it won't be. Decisions > about whether to panic the system or not are user space policy, and > should not be embedded into subsystems. What we need to do is to come > up with a way of detecting the condition, reporting it and possibly > taking some action. > > > Because even on such disk error, cluster monitoring > > tool may not be able to detect the system failure while heartbeat can > > continue > > working. > > So, I think basically offlining is enough and also, panic is necessary > > on some cases. The way I have seen this done in such a clustered environment is to have the heartbeat agent on each system periodically attempt to access the disk. If that I/O hangs, other systems will see loss of heartbeat. You really don't want to panic the kernel. Among other things, it may make it difficult to get the system up again later for long enough to figure out what is wrong. > > Offline seems a bit drastic ... what happens if you send it a target > reset? > > James > > > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/