Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932581AbWAJWaj (ORCPT ); Tue, 10 Jan 2006 17:30:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932584AbWAJWaj (ORCPT ); Tue, 10 Jan 2006 17:30:39 -0500 Received: from bay101-f10.bay101.hotmail.com ([64.4.56.20]:27634 "EHLO hotmail.com") by vger.kernel.org with ESMTP id S932579AbWAJWai (ORCPT ); Tue, 10 Jan 2006 17:30:38 -0500 Message-ID: X-Originating-IP: [70.150.153.162] X-Originating-Email: [jtreubig@hotmail.com] From: "John Treubig" To: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Error handling in LibATA Date: Tue, 10 Jan 2006 16:30:35 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 10 Jan 2006 22:30:35.0752 (UTC) FILETIME=[79B37680:01C61635] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1369 Lines: 27 I've been working on a problem with Promise 20269 PATA adapter under LibATA that if the drive has a write error or time-out, the application that is accessing the drive using SG should see some sort of error. My first problem was my system hung. After patching the IDE-IO.C, with a recognized patch, I have been able to keep my system from hanging. Now the only problem is the application gets no notification that the drive has been rendered inaccessible. (Test case is to run a system with my app going, and then pull the power from the drive. System log shows the errors, but nothing gets back to the app). The app does get notifications if I perform the same type of test on a drive attached to the motherboard secondary IDE adapter, so we know the app is correctly implemented. I've traced the errors down to the fact that the errors are caught in libata-core.c (ata_qc_timeout). I'd like to put a call in libata-core.c that would cause an error to be reflected back to the application. Can you suggest the function or method that would do this? Best wishes, John Treubig VT Miltope Corporation - 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/