Locking inside block driver
Environment
- Red Hat Enterprise Linux (RHEL) 7.1
Issue
- We have a block driver. Our block driver implements most of the regular block driver entry points. We have an unplug function too implemented.
We came across a defect in our product due to a lock that we had taken inside our unplug function. From investigation we found that locks are not suppose to be used inside the unplug function. For block drivers, whether Red Hat provides any list of entry points or functions in which locks should not be used?
Resolution
List of kernel calls in which locks should not be used is not separately maintained.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
