From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: Concurrent SG_SCSI_RESET ioctls Date: Fri, 24 Oct 2014 07:51:31 -0700 Message-ID: <20141024145131.GA2940@infradead.org> References: <94D0CD8314A33A4D9D801C0FE68B402958CE9B54@G4W3202.americas.hpqcorp.net> <20141011161110.GA16812@infradead.org> <94D0CD8314A33A4D9D801C0FE68B402958CEB20A@G4W3202.americas.hpqcorp.net> <20141014111354.GA3022@infradead.org> <543D5272.5080102@interlog.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from bombadil.infradead.org ([198.137.202.9]:36497 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932187AbaJXOvg (ORCPT ); Fri, 24 Oct 2014 10:51:36 -0400 Content-Disposition: inline In-Reply-To: <543D5272.5080102@interlog.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Douglas Gilbert Cc: Christoph Hellwig , "Elliott, Robert (Server Storage)" , "James Bottomley (jbottomley@parallels.com)" , "linux-scsi@vger.kernel.org" , "Don Brace (PMC)" , "Scales, Webb" On Tue, Oct 14, 2014 at 12:42:26PM -0400, Douglas Gilbert wrote: > I don't mind if you change it. However I plan to release > sg3_utils-1.40 in the next 2 or 3 weeks, so that would > be the earliest a revised sg_reset would be available for > distros. Improving error reports is something I always > like to do (so ENODEV for the "in progress" case seems a > bit strident). Doug, are you fine with changing the error code to EAGAIN similar to what we get elsewhere when a O_NONBLOCK open would have to block? If that's something you can prepare sg3_utils for I'd like to send a patch for it for the 3.19 merge window.