summaryrefslogtreecommitdiff
path: root/include/dt-bindings/power/rk3368-power.h
blob: 93633d57ed8485bb657979438bd355cc6cdb3edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef __DT_BINDINGS_POWER_RK3368_POWER_H__
#define __DT_BINDINGS_POWER_RK3368_POWER_H__

/* VD_CORE */
#define RK3368_PD_A53_L0	0
#define RK3368_PD_A53_L1	1
#define RK3368_PD_A53_L2	2
#define RK3368_PD_A53_L3	3
#define RK3368_PD_SCU_L		4
#define RK3368_PD_A53_B0	5
#define RK3368_PD_A53_B1	6
#define RK3368_PD_A53_B2	7
#define RK3368_PD_A53_B3	8
#define RK3368_PD_SCU_B		9

/* VD_LOGIC */
#define RK3368_PD_BUS		10
#define RK3368_PD_PERI		11
#define RK3368_PD_VIO		12
#define RK3368_PD_ALIVE		13
#define RK3368_PD_VIDEO		14
#define RK3368_PD_GPU_0		15
#define RK3368_PD_GPU_1		16

/* VD_PMU */
#define RK3368_PD_PMU		17

#endif
d2=7a308bb3016f57e5be11a677d15b821536419d36'>diff)
xfs: fix COW writeback race
Due to the way how xfs_iomap_write_allocate tries to convert the whole found extents from delalloc to real space we can run into a race condition with multiple threads doing writes to this same extent. For the non-COW case that is harmless as the only thing that can happen is that we call xfs_bmapi_write on an extent that has already been converted to a real allocation. For COW writes where we move the extent from the COW to the data fork after I/O completion the race is, however, not quite as harmless. In the worst case we are now calling xfs_bmapi_write on a region that contains hole in the COW work, which will trip up an assert in debug builds or lead to file system corruption in non-debug builds. This seems to be reproducible with workloads of small O_DSYNC write, although so far I've not managed to come up with a with an isolated reproducer. The fix for the issue is relatively simple: tell xfs_bmapi_write that we are only asked to convert delayed allocations and skip holes in that case. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'include/xen')