summaryrefslogtreecommitdiffstats
path: root/fs/splice.c
diff options
context:
space:
mode:
authorShin Hong <hongshin@gmail.com>2009-06-11 02:11:29 +0200
committerChris Mason <chris.mason@oracle.com>2009-06-11 02:11:29 +0200
commitfd0fb038d5a308c7faddd1701be5e70aaffec98b (patch)
tree50b0f3cda5a957bad1090ec4d7bd4e49f43171da /fs/splice.c
parentBtrfs: pin buffers during write_dev_supers (diff)
downloadlinux-fd0fb038d5a308c7faddd1701be5e70aaffec98b.tar.xz
linux-fd0fb038d5a308c7faddd1701be5e70aaffec98b.zip
Btrfs: init worker struct fields before kthread-run
This patch fixes a bug which may result race condition between btrfs_start_workers() and worker_loop(). btrfs_start_workers() executed in a parent thread writes on workers->worker and worker_loop() in a child thread reads workers->worker. However, there is no synchronization enforcing the order of two operations. This patch makes btrfs_start_workers() fill workers->worker before it starts a child thread with worker_loop() Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/splice.c')
0 files changed, 0 insertions, 0 deletions