Revert "Revert "patch: rwsem""

This reverts commit 4dbd002363a6709713e3c47dd54d3214b06ec108.