linux/drivers/staging
Christopher J. Morrone 717d1c2ee3 staging/lustre/llite: Avoid statahead thread start/stop deadlocks
The statahead and statahead agl threads blindly set their
thread state to SVC_RUNNING without checking the state first.  If, for
instance, another thread sets the state to SVC_STOPPING that
stop signal will now have been lost.  Deadlock ensues.

We also partly improve the sai reference counting, because a race exists
where the ll_stop_statahead thread can drop the default reference, and
the statahead thread can exit and drop its reference as well.  With no
references on the sai, the final put will poison and free the buffer.  The
original do_statahead_enter() function may then continue to access
the buffer after it is freed because it did not take a reference of its
own.  We add a local reference to address that.

Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/9358
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4624
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-27 10:24:54 -07:00
..
android Staging: android: ion: duplicated clearing of sg_table 2014-04-25 15:17:31 -07:00
bcm Staging:bcm: Fixes coding style issues in drivers/staging/bcm/Qos.c 2014-04-18 16:23:55 -07:00
ced1401
comedi staging: comedi: adv_pci1710: rename check_channel_list() 2014-04-25 15:07:40 -07:00
cptm1217
crystalhd Staging: crystalhd: Improve kzalloc calls in crystalhd_lnx.c 2014-04-18 16:22:15 -07:00
cxt1e1 staging: cxt1e1: Avoid using 0 instead of NULL 2014-04-26 08:42:54 -07:00
dgap
dgnc
dgrp
et131x
frontier
ft1000
fwserial drivers/staging: Use RCU_INIT_POINTER(x, NULL) in fwserial/fwserial.c 2014-04-25 14:01:40 -07:00
gdm72xx
gdm724x
goldfish Merge 3.15-rc2 into staging-next 2014-04-22 10:08:40 -07:00
gs_fpgaboot staging: gs_fpgaboot: remove __TIMESTAMP__ macro 2014-04-15 14:46:43 -07:00
iio First round of IIO new driver, functionality and cleanups for the 3.16 cycle. 2014-04-26 08:12:25 -07:00
imx-drm Staging: imx-drm: Fix some lines over 80 characters 2014-04-25 16:14:56 -07:00
keucr staging: keucr: fix sparse warning 2014-04-25 15:22:57 -07:00
line6 staging/line6: Fix kzalloc coding style issue 2014-04-16 20:30:04 -07:00
lustre staging/lustre/llite: Avoid statahead thread start/stop deadlocks 2014-04-27 10:24:54 -07:00
media
mt29f_spinand
netlogic staging: netlogic: fix missing a blank line after declarations 2014-04-25 16:05:12 -07:00
nokia_h4p
nvec
octeon
octeon-usb
olpc_dcon
ozwpan
panel staging: panel: add blank lines after declarations 2014-04-18 16:17:12 -07:00
phison
quickstart
rtl8188eu staging: rtl8188eu: Remove unused enum LED_CTL_MODE members. 2014-04-25 15:59:51 -07:00
rtl8192e Staging: rtl8192e: Remove built-in firmware images 2014-04-25 16:02:01 -07:00
rtl8192u staging: rtl8192u: Fix indentation problems 2014-04-25 15:37:55 -07:00
rtl8712 staging: r8712u: Fix case where ethtype was never obtained and always be checked against 0 2014-04-16 13:07:19 -07:00
rtl8723au staging: rtl8723au: Get rid of _rtw_free_network23a_nolock23a() 2014-04-26 10:16:22 -07:00
rtl8821ae staging/rtl8821ae: fix sparse address space warning 2014-04-25 16:02:01 -07:00
rts5139
rts5208
sep
serqt_usb2
silicom staging: silicom: remove redundant pci_get_drvdata() call 2014-04-25 15:34:16 -07:00
skein staging: crypto: skein: add TODO file 2014-04-18 15:47:43 -07:00
slicoss Staging: slicoss: Fix smatch warning in slicoss.c 2014-04-25 16:05:12 -07:00
speakup Merge 3.15-rc2 into staging-next 2014-04-22 10:08:40 -07:00
ste_rmi4
tidspbridge
unisys Staging: unisys: virthba: add MODULE_DEVICE_TABLE 2014-04-25 15:32:17 -07:00
usbip staging/usbip: fix store_attach() sscanf return value check 2014-04-15 14:43:01 -07:00
vme Merge 3.15-rc2 into staging-next 2014-04-22 10:08:40 -07:00
vt6655 staging: vt6655: removed incorrect casting in ioctl.c 2014-04-18 16:11:56 -07:00
vt6656 staging: vt6656: fix bad symbol declaration 2014-04-18 16:10:29 -07:00
winbond
wlags49_h2
wlags49_h25
wlan-ng staging/wlan-ng: fix small coding style issues 2014-04-25 16:21:15 -07:00
xgifb staging: xgifb coding style cleanup 2014-04-25 16:20:02 -07:00
xillybus
Kconfig staging: remove sbe-2t3e3 driver. 2014-04-25 13:59:57 -07:00
Makefile staging: remove sbe-2t3e3 driver. 2014-04-25 13:59:57 -07:00
staging.c