ctdb-locking: Remove multiple lock requests per lock context (part 1)
authorAmitay Isaacs <amitay@gmail.com>
Fri, 30 May 2014 05:36:28 +0000 (15:36 +1000)
committerVolker Lendecke <vl@samba.org>
Mon, 4 Aug 2014 15:59:52 +0000 (17:59 +0200)
commita89f3508796d6be8efe45ccc1f9ffee7e4d3f4f3
tree023eb7182df926e8caa1b257f28547e9eaaaa0a4
parentb93d9c062229252a78a4497fba402ec968be9713
ctdb-locking: Remove multiple lock requests per lock context (part 1)

This was a bad idea and caused out of order scheduling of lock requests.

The logic to append lock requests to existing lock context is already
commented.  Remove the commented code and there is no need to check if
lock_ctx is NULL, since we are always creating a new one.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/server/ctdb_lock.c