diff options
| author | Bob Peterson <[email protected]> | 2022-02-11 15:50:08 +0000 |
|---|---|---|
| committer | Andreas Gruenbacher <[email protected]> | 2022-05-24 19:29:14 +0000 |
| commit | 5fcff61eea9efd1f4b60e89d2d686b5feaea100f (patch) | |
| tree | 5ab3319b4416fadfb59ad13992561158fb35c6f4 /fs/jbd2/commit.c | |
| parent | gfs2: Return more useful errors from gfs2_rgrp_send_discards() (diff) | |
| download | kernel-5fcff61eea9efd1f4b60e89d2d686b5feaea100f.tar.gz kernel-5fcff61eea9efd1f4b60e89d2d686b5feaea100f.zip | |
gfs2: use i_lock spin_lock for inode qadata
Before this patch, functions gfs2_qa_get and _put used the i_rw_mutex to
prevent simultaneous access to its i_qadata. But i_rw_mutex is now used
for many other things, including iomap_begin and end, which causes a
conflict according to lockdep. We cannot just remove the lock since
simultaneous opens (gfs2_open -> gfs2_open_common -> gfs2_qa_get) can
then stomp on each others values for i_qadata.
This patch solves the conflict by using the i_lock spin_lock in the inode
to prevent simultaneous access.
Signed-off-by: Bob Peterson <[email protected]>
Signed-off-by: Andreas Gruenbacher <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
