Skip to content
Commit e8d889d0 authored by He Zhe's avatar He Zhe Committed by Bruce Ashfield
Browse files

aufs: i_op: Add handling for au_pin_hdir_set_owner with RT kernel



In RT kernel rw_semaphore uses rt_mutex whose owner should be set to the
task. Add a condition to handle both cases to avoid the following build error
for PREEMPT_RT kernel.

fs/aufs/i_op.c: In function 'au_pin_hdir_set_owner':
fs/aufs/i_op.c:639:52: error: 'struct rw_semaphore' has no member named 'owner'
639 |         atomic_long_set(&p->hdir->hi_inode->i_rwsem.owner, (long)task);

Signed-off-by: default avatarHe Zhe <zhe.he@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent 3ecd9203
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment