From: "Jan Beulich" Subject: Re: [PATCH linux-2.6.18] support suspend/resume in pvscsi drivers Date: Fri, 30 Jan 2015 15:05:29 +0000 Message-ID: <54CBABC9020000780005B6C2@mail.emea.novell.com> References: <1422625932-30037-1-git-send-email-jgross@suse.com> <54CBA747020000780005B636@suse.com> <54CB9B17.40901@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YHD8W-0005zA-7E for xen-devel@lists.xenproject.org; Fri, 30 Jan 2015 15:05:32 +0000 In-Reply-To: <54CB9B17.40901@suse.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Juergen Gross Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 30.01.15 at 15:54, wrote: > On 01/30/2015 03:46 PM, Jan Beulich wrote: >>>>> On 30.01.15 at 14:52, <"jgross@suse.com".non-mime.internet> wrote: >>> @@ -231,8 +242,23 @@ static int scsifront_cmd_done(struct vsc >>> return more_to_do; >>> } >>> >>> +void scsifront_finish_all(struct vscsifrnt_info *info) >>> +{ >>> + unsigned i; >>> + struct vscsiif_response resp; >>> >>> + scsifront_ring_drain(info); >> >> Shouldn't you at least issue some kind of warning when this returns >> non-zero? > > If a warning should be issued, then this should be done after the > following loop in case of at least one request terminated there. > > I'm really not sure, whether a warning is required here. If you like, > I can add one. I'm not sure, I'm merely asking because I saw the function return value being ignored here. Jan