android_kernel_google_msm/include
Junxiao Bi f632881de1 aio: make kiocb->private NUll in init_sync_kiocb()
commit 2dfd06036b upstream.

Ocfs2 uses kiocb.*private as a flag of unsigned long size. In
commit a11f7e6 ocfs2: serialize unaligned aio, the unaligned
io flag is involved in it to serialize the unaligned aio. As
*private is not initialized in init_sync_kiocb() of do_sync_write(),
this unaligned io flag may be unexpectly set in an aligned dio.
And this will cause OCFS2_I(inode)->ip_unaligned_aio decreased
to -1 in ocfs2_dio_end_io(), thus the following unaligned dio
will hang forever at ocfs2_aiodio_wait() in ocfs2_file_aio_write().

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-07-16 09:04:23 -07:00
..
acpi Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux 2012-05-05 10:06:06 -07:00
asm-generic asm-generic: Use __BITS_PER_LONG in statfs.h 2012-04-30 12:55:15 -07:00
crypto
drm drm/radeon/kms: add new SI PCI ids 2012-06-10 00:36:18 +09:00
keys
linux aio: make kiocb->private NUll in init_sync_kiocb() 2012-07-16 09:04:23 -07:00
math-emu
media Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-05-14 11:23:37 -07:00
misc
mtd
net bonding: Fix corrupted queue_mapping 2012-07-16 09:03:47 -07:00
pcmcia
rdma
rxrpc
scsi SCSI & usb-storage: add try_rc_10_first flag 2012-07-16 09:04:10 -07:00
sound ALSA: hda - hide HDMI/ELD printks unless snd.debug=2 2012-04-10 14:53:55 +02:00
target
trace Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-04-04 10:04:42 -07:00
video
xen xen: do not map the same GSI twice in PVHVM guests. 2012-06-01 15:18:25 +08:00
Kbuild