[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <5589179F0200007800087E6E@mail.emea.novell.com>
Date: Tue, 23 Jun 2015 07:23:59 +0100
From: "Jan Beulich" <JBeulich@...e.com>
To: "Konrad Rzeszutek Wilk" <konrad.wilk@...cle.com>
Cc: <david.vrabel@...rix.com>, <julien.grall@...rix.com>,
<marcus.granado@...rix.com>, <Paul.Durrant@...rix.com>,
<Rafal.Mielniczuk@...rix.com>, <roger.pau@...rix.com>,
<xen-devel@...ts.xenproject.org>, <justing@...ctralogic.com>,
<linux-kernel@...r.kernel.org>
Subject: Re: [Xen-devel] [PATCH] drivers: xen-blkfront: only
talk_to_blkback() when in XenbusStateInitialising
>>> On 22.06.15 at 15:56, <konrad.wilk@...cle.com> wrote:
> --- a/drivers/block/xen-blkfront.c
> +++ b/drivers/block/xen-blkfront.c
> @@ -1951,6 +1951,8 @@ static void blkback_changed(struct xenbus_device *dev,
>
> switch (backend_state) {
> case XenbusStateInitWait:
> + if (dev->state != XenbusStateInitialising)
> + break;
If, as you say in a subsequent reply, all other drivers already have
such a check, wouldn't it make more sense to put this into xenbus'
backend_changed() or even xenbus_otherend_changed()?
Jan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists