Re: [PATCH v1 1/1] Firstly, as Andy mentioned, this should be smp_rmb() instead of rmb(). considering that TSYNC is a cross-thread situation, and rmb() is a mandatory barrier which should not be used to control SMP effects, since mandatory barriers impose unnecessary overhead on both SMP and UP systems, as kernel Documentation said.
From: Greg KH
Date: Tue Feb 02 2021 - 06:54:24 EST
- Next message: Avri Altman: "RE: [PATCH v2 2/9] scsi: ufshpb: Add host control mode support to rsp_upiu"
- Previous message: Greg KH: "Re: [PATCH V2 0/3] SWIOTLB: Preserve swiotlb map offset when needed."
- In reply to: wanghongzhe: "[PATCH v1 1/1] Firstly, as Andy mentioned, this should be smp_rmb() instead of rmb(). considering that TSYNC is a cross-thread situation, and rmb() is a mandatory barrier which should not be used to control SMP effects, since mandatory barriers impose unnecessary overhead on both SMP and UP systems, as kernel Documentation said."
- Next in thread: kernel test robot: "Re: [PATCH v1 1/1] Firstly, as Andy mentioned, this should be smp_rmb() instead of rmb(). considering that TSYNC is a cross-thread situation, and rmb() is a mandatory barrier which should not be used to control SMP effects, since mandatory barriers impose unnecessary overhead on both SMP and UP systems, as kernel Documentation said."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Feb 02, 2021 at 06:13:07PM +0800, wanghongzhe wrote:
> Secondly, the smp_rmb() should be put between reading SYSCALL_WORK_SECCOMP and reading
<snip>
Your subject line of the patch is a bit odd :)
- Next message: Avri Altman: "RE: [PATCH v2 2/9] scsi: ufshpb: Add host control mode support to rsp_upiu"
- Previous message: Greg KH: "Re: [PATCH V2 0/3] SWIOTLB: Preserve swiotlb map offset when needed."
- In reply to: wanghongzhe: "[PATCH v1 1/1] Firstly, as Andy mentioned, this should be smp_rmb() instead of rmb(). considering that TSYNC is a cross-thread situation, and rmb() is a mandatory barrier which should not be used to control SMP effects, since mandatory barriers impose unnecessary overhead on both SMP and UP systems, as kernel Documentation said."
- Next in thread: kernel test robot: "Re: [PATCH v1 1/1] Firstly, as Andy mentioned, this should be smp_rmb() instead of rmb(). considering that TSYNC is a cross-thread situation, and rmb() is a mandatory barrier which should not be used to control SMP effects, since mandatory barriers impose unnecessary overhead on both SMP and UP systems, as kernel Documentation said."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]