Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean-up module ops #276

Merged
merged 17 commits into from
May 8, 2018
Merged

Clean-up module ops #276

merged 17 commits into from
May 8, 2018

Conversation

tdz
Copy link
Member

@tdz tdz commented May 8, 2018

The module ops contain unnecessary function pointers. The structure and it's users should be cleaned up. Additionally, this prepares for 2PC. (#99)

tdz added 17 commits May 8, 2018 14:12
The public interface picotm_is_valid() has no real purpose or use
case. This patch removes the interface and its implementation.
The Transactional Memory module only uses pessimistic CC with locking
when a memory location is first accessed. The module ops for locking,
unlocking and validation are therefore empty. This patch removes the
respective functions.
The lock(), unlock(), and validate() operations in |struct file_tx_ops|
were not implemented by any file type. This patch removes the respective
code.
The functions for locking, unlocking and validation for |struct ofd_tx|
state had empty implmentations. This patch removes the respective code.
The lock() and unlock() functions of |struct fildes_tx| have empty
implementations. This patch removes the respective functions.
Previous patches merged the update_cc() and clear_cc() for
|struct fildes_tx| into finish(). This patch removes the empty
functions.
The functionality of update_cc() and clear_cc() have been merged with
the finish() call-back function. This patch removes the respective
module ops.
@tdz tdz added this to the picotm 0.13.0 milestone May 8, 2018
@tdz tdz self-assigned this May 8, 2018
@tdz tdz merged commit 71a9863 into picotm:master May 8, 2018
@tdz tdz deleted the module_ops branch May 8, 2018 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

1 participant