Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04c06350 authored by Wim Colgate's avatar Wim Colgate Committed by Jens Axboe
Browse files

xen/blkfront: Make sure that the device is fully ready before allowing release.



[ linux-2.6.18-xen changeset c1c57fea77e9 ]

Signed-off-by: default avatarWim Colgate <wim@xensource.com>
Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 440a01a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -997,7 +997,7 @@ static int blkif_release(struct inode *inode, struct file *filep)
		struct xenbus_device *dev = info->xbdev;
		enum xenbus_state state = xenbus_read_driver_state(dev->otherend);

		if (state == XenbusStateClosing)
		if (state == XenbusStateClosing && info->is_ready)
			blkfront_closing(dev);
	}
	return 0;