aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <[email protected]>2023-11-01 17:25:42 +0000
committerSteven Rostedt (Google) <[email protected]>2023-11-02 03:49:32 +0000
commitf2f496370afcbc5227d7002da28c74b91fed12ff (patch)
tree0f695fce17211e783d42ec37a1d80eca2edc7108 /drivers/cdx/controller/cdx_controller.c
parenteventfs: Fix kerneldoc of eventfs_remove_rec() (diff)
downloadkernel-f2f496370afcbc5227d7002da28c74b91fed12ff.tar.gz
kernel-f2f496370afcbc5227d7002da28c74b91fed12ff.zip
eventfs: Remove "is_freed" union with rcu head
The eventfs_inode->is_freed was a union with the rcu_head with the assumption that when it was on the srcu list the head would contain a pointer which would make "is_freed" true. But that was a wrong assumption as the rcu head is a single link list where the last element is NULL. Instead, split the nr_entries integer so that "is_freed" is one bit and the nr_entries is the next 31 bits. As there shouldn't be more than 10 (currently there's at most 5 to 7 depending on the config), this should not be a problem. Link: https://lkml.kernel.org/r/[email protected] Cc: [email protected] Cc: Mark Rutland <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Ajay Kaher <[email protected]> Fixes: 63940449555e7 ("eventfs: Implement eventfs lookup, read, open functions") Reviewed-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions