[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.2-testing] tmem: properly drop lock on error path in do_tmem_op()
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1348568194 -7200 # Node ID 22dfc72fdbf394098027e051bba2ebbd40f2ee32 # Parent b4218d4791cd1ed3baa668b2a7dddb15b7186499 tmem: properly drop lock on error path in do_tmem_op() Reported-by: Tim Deegan <tim@xxxxxxx> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> xen-unstable changeset: 25857:109ea6a0c23a xen-unstable date: Tue Sep 11 12:18:26 UTC 2012 --- diff -r b4218d4791cd -r 22dfc72fdbf3 xen/common/tmem.c --- a/xen/common/tmem.c Tue Sep 25 12:16:14 2012 +0200 +++ b/xen/common/tmem.c Tue Sep 25 12:16:34 2012 +0200 @@ -2659,13 +2659,19 @@ EXPORT long do_tmem_op(tmem_cli_op_t uop if ( client != NULL && tmh_client_is_dying(client) ) { rc = -ENODEV; - goto out; + if ( tmh_lock_all ) + goto out; + simple_error: + errored_tmem_ops++; + return rc; } if ( unlikely(tmh_get_tmemop_from_client(&op, uops) != 0) ) { printk("tmem: can't get tmem struct from %s\n",client_str); rc = -EFAULT; + if ( !tmh_lock_all ) + goto simple_error; goto out; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |