alistair23-linux/drivers/staging
Peng Tao 363090e74f staging/lustre/llite: fix mkdir endless loop
Running on 3.11-rc4 kernel, I got below endless loop. It turns to be that Lustre
always saves the first page of a dir inode mapping at index ~0UL.  And after
commit 5a720394 (mm: teach truncate_inode_pages_range() to handle non page
aligned ranges), truncate_inode_pages_range() _NO LONGER_ truncates the page
that is sitting at index ~0UL.

[16768.998006] mkdir           R  running task        0  2717   2716 0x00000080
[16768.998073]  000000000000000e 0000000000000000 0000000000000000 ffff88000be00460
[16768.998157]  ffff88000ea65908 ffffffff810fec3e ffff88000ea65968 ffff8800229e7750
[16768.998241]  ffff88000ea658b8 0000000000000000 0000000000000000 ffff88000ea65958
[16768.998326] Call Trace:
[16768.998401]  [<ffffffff810fc6ed>] ? rcu_read_unlock+0x1c/0x2d
[16768.998473]  [<ffffffff810fec3e>] ? find_get_pages+0xf5/0x11b
[16768.998530]  [<ffffffff811078f0>] ? pagevec_lookup+0x20/0x2a
[16768.998586]  [<ffffffff8110920e>] ? truncate_inode_pages_range.part.2+0x161/0x39a
[16768.998680]  [<ffffffffa02ad5dc>] ? ll_md_blocking_ast+0x338/0x62f [lustre]
[16768.998744]  [<ffffffff8110947f>] ? truncate_inode_pages_range+0x38/0x3f
[16768.998805]  [<ffffffff811094f8>] ? truncate_inode_pages+0x12/0x14
[16768.998871]  [<ffffffffa02ad6e8>] ? ll_md_blocking_ast+0x444/0x62f [lustre]
[16768.998948]  [<ffffffff810981b5>] ? arch_local_irq_save+0x9/0xc
[16768.999022]  [<ffffffffa07ee0e8>] ? ldlm_cancel_callback+0x67/0x12a [ptlrpc]
[16768.999100]  [<ffffffffa07f85b2>] ? ldlm_cli_cancel_local+0xf3/0x2bc [ptlrpc]
[16768.999176]  [<ffffffffa07f9163>] ? ldlm_cli_cancel_list_local+0x7e/0x1e4 [ptlrpc]
[16768.999268]  [<ffffffffa07f9473>] ? ldlm_cancel_resource_local+0x1aa/0x1b9 [ptlrpc]
[16768.999385]  [<ffffffffa0657bad>] ? mdc_resource_get_unused+0xf8/0x115 [mdc]
[16768.999472]  [<ffffffff8109c887>] ? trace_hardirqs_on+0xd/0xf
[16768.999533]  [<ffffffffa06583d8>] ? mdc_create+0x11e/0x4db [mdc]
[16768.999597]  [<ffffffff8152ed84>] ? mutex_unlock+0xe/0x10
[16768.999654]  [<ffffffffa0350e99>] ? lmv_create+0x355/0x3e9 [lmv]
[16768.999712]  [<ffffffff811553b7>] ? final_putname+0x35/0x39
[16768.999775]  [<ffffffffa02ae167>] ? ll_new_node+0x33b/0x3ff [lustre]
[16768.999841]  [<ffffffffa02ae62c>] ? ll_mkdir+0xf2/0x127 [lustre]
[16768.999897]  [<ffffffff81156996>] ? vfs_mkdir+0x84/0xc9
[16768.999961]  [<ffffffff81158cf8>] ? SyS_mkdirat+0x77/0xad
[16769.000014]  [<ffffffff81158d47>] ? SyS_mkdir+0x19/0x1b
[16769.000066]  [<ffffffff81538652>] ? system_call_fastpath+0x16/0x1b

Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-26 20:15:22 -07:00
..
android staging: ashmem: Fix ASHMEM_PURGE_ALL_CACHES return value 2013-10-25 06:22:39 +01:00
bcm
btmtk_usb Staging: btmtk_usb: Fix Sparse Warning of incorrect type in assignment 2013-10-16 09:32:28 -07:00
ced1401
comedi staging: comedi: s626: bitfield manipulation macros for CRA, CRB and setup 2013-10-19 13:47:23 -07:00
cptm1217
crystalhd
cxt1e1
dgap
dgnc Staging: dgnc: avoiding buffer overflow 2013-10-19 14:35:05 -07:00
dgrp
dwc2
echo
et131x
frontier
ft1000 Staging: ft1000: fixed two coding style issues 2013-10-19 13:43:41 -07:00
fwserial
gdm72xx
gdm724x
goldfish
iio Fourth round of IIO new drivers, functionality and cleanups for the 3.13 cycle. 2013-10-19 05:16:34 -07:00
imx-drm
keucr
ktap
line6 Staging: line6: replacing -EINVAL with retval in driver.c 2013-10-19 14:51:06 -07:00
lustre staging/lustre/llite: fix mkdir endless loop 2013-10-26 20:15:22 -07:00
media Revert "staging:media:lirc: quoted string split across lines" 2013-10-15 09:40:57 -07:00
mt29f_spinand staging/mt29f_spinand: fix build error when ONDIEECC not enabled 2013-10-15 12:19:48 -07:00
netlogic staging:netlogic:Fixes commenting style in xlr_net.c 2013-10-15 12:27:11 -07:00
nvec
octeon
octeon-usb
olpc_dcon staging/olpc_dcon: fix kconfig to fix build errors 2013-10-15 12:25:30 -07:00
ozwpan
panel
phison
quickstart
rtl8187se staging: rtl8187se: checkpatch cleanups 2013-10-19 14:55:44 -07:00
rtl8188eu
rtl8192e Staging: rtl8192e: Replacing (u8*) with (u8 *) 2013-10-15 08:46:10 -07:00
rtl8192u staging: rtl8192u: fix sparse warning, make a function static 2013-10-19 05:27:49 -07:00
rtl8712
rts5139
sb105x Staging: sb105x: Fix a possible null dereference 2013-10-25 06:34:21 +01:00
sbe-2t3e3
sep Staging: sep: Fix Smatch Warning in sep_crypto.c 2013-10-19 14:51:05 -07:00
serqt_usb2
silicom
slicoss Staging: slicoss: Fix quoted string split across lines 2013-10-19 14:45:08 -07:00
sm7xxfb
speakup Staging: speakup: replacing simple_strtoul with kstrtoul 2013-10-19 14:51:06 -07:00
ste_rmi4
tidspbridge
usbip
vme
vt6655 staging: vt6655: Fix C99 commenting style in michael.h 2013-10-19 14:51:05 -07:00
vt6656 staging: vt6656: removed line over 80 chars warning 2013-10-17 13:34:23 -07:00
winbond
wlags49_h2 staging: wlags49_h2: Fixes the sparse warning in sta_h2.c 2013-10-19 14:28:58 -07:00
wlags49_h25
wlan-ng Staging: wlan-ng: changing "* dev" to "*dev" 2013-10-17 09:12:15 -07:00
xgifb
xillybus staging: xillybus: Use dev_* functions instead of pr_* in xillybus_core 2013-10-19 13:41:34 -07:00
zram
zsmalloc
Kconfig
Makefile
staging.c