diff options
author | Amir Goldstein <amir73il@gmail.com> | 2023-07-20 12:51:21 +0300 |
---|---|---|
committer | Amir Goldstein <amir73il@gmail.com> | 2023-10-31 00:12:57 +0200 |
commit | 162d06444070c12827d604a2cb6b6bd98d48cbb0 (patch) | |
tree | aa5ac2ffb3dce2d74c3fb7812b3ea37abca90a99 /drivers/tty/serial/esp32_acm.c | |
parent | d08d3b3c2caf6c482703bbc5efaa7b9ae95dea20 (diff) |
ovl: reorder ovl_want_write() after ovl_inode_lock()
Make the locking order of ovl_inode_lock() strictly between the two
vfs stacked layers, i.e.:
- ovl vfs locks: sb_writers, inode_lock, ...
- ovl_inode_lock
- upper vfs locks: sb_writers, inode_lock, ...
To that effect, move ovl_want_write() into the helpers ovl_nlink_start()
and ovl_copy_up_start which currently take the ovl_inode_lock() after
ovl_want_write().
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'drivers/tty/serial/esp32_acm.c')
0 files changed, 0 insertions, 0 deletions