Re: [PATCH] ceph: refactor wake_up_bit() pattern of calling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 07, 2025 at 01:03:22PM -0700, Viacheslav Dubeyko wrote:
>  	spin_lock(&dentry->d_lock);
> -	di->flags &= ~CEPH_DENTRY_ASYNC_UNLINK;
> +	clear_bit(CEPH_DENTRY_ASYNC_UNLINK_BIT, &di->flags);
> +	/* ensure modified bit is visible */
> +	smp_mb__after_atomic();
>  	wake_up_bit(&di->flags, CEPH_DENTRY_ASYNC_UNLINK_BIT);

Seems like you're open-coding clear_and_wake_up_bit()?





[Index of Archives]     [CEPH Users]     [Ceph Large]     [Ceph Dev]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux