From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cornelia Huck Subject: Re: [PATCH v3 6/6] vfio-ccw: add handling for async channel instructions Date: Thu, 31 Jan 2019 12:53:56 +0100 Message-ID: <20190131125356.3c227899.cohuck@redhat.com> References: <20190130132212.7376-1-cohuck@redhat.com> <20190130132212.7376-7-cohuck@redhat.com> <20190130180931.4fd4b6a9@oc2783563651> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-s390@vger.kernel.org, Eric Farman , Alex Williamson , Pierre Morel , kvm@vger.kernel.org, Farhan Ali , qemu-devel@nongnu.org, qemu-s390x@nongnu.org To: Halil Pasic Return-path: In-Reply-To: <20190130180931.4fd4b6a9@oc2783563651> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel2=m.gmane.org@nongnu.org Sender: "Qemu-devel" List-Id: kvm.vger.kernel.org On Wed, 30 Jan 2019 18:09:31 +0100 Halil Pasic wrote: > On Wed, 30 Jan 2019 14:22:12 +0100 > Cornelia Huck wrote: > > > +static void fsm_async_retry(struct vfio_ccw_private *private, > > + enum vfio_ccw_event event) > > +{ > > + private->cmd_region->ret_code = -EAGAIN; > > +} > > + > > This is essentially dead code at the moment, isn't it? I mean we hold the > io_mutex whenever we are in state VFIO_CCW_STATE_CP_PROCESSING, and we > call vfio_ccw_fsm_event() with the very same mutex held. Well, I did have to put something in the state machine...