linux/drivers/staging
Alexander Boyko d09cfb0061 staging: lustre: ptlrpc: fix race between connect vs resend
Buggy code at ptlrpc_connect_interpret()
finish:
    rc = ptlrpc_import_recovery_state_machine(imp);
    ...
    Set import connection flags
When import has FULL state ptlrpc_import_recovery_state_machine()
wakeup all waiters on import and all delayed request, which was
resented. And it could happened that request was send without
updated flags and AT is disabled. If such request is in progress
on the server, server drop the new instance, and could do early reply
for it. But this early reply confuse client, cause it wait real
reply(no AT for this request). Client try to touch buffer outside
reply and got EPROTO error.
The same bug existed for initital connect too. Import became FULL
before import connection flags was set.

Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5528
Xyratex-bug-id: MRP-2034
Reviewed-on: http://review.whamcloud.com/11723
Reviewed-by: Li Wei <wei.g.li@intel.com>
Reviewed-by: Alexander Boyko <alexander.boyko@seagate.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2016-09-19 09:53:46 +02:00
..
android staging: android ion/hisi: fix dependencies 2016-09-16 10:22:35 +02:00
board staging: board: line over 80 characters 2016-04-29 17:58:02 -07:00
clocking-wizard Staging: clocking-wizard: CHECK:Please use a blank line 2016-02-07 20:05:31 -08:00
comedi staging: comedi: Use the BIT() macro instead of left shifting 1 2016-09-16 10:27:52 +02:00
dgnc Staging: dgnc: dgnc_tty: fixed a line too long style issue 2016-09-17 23:47:12 +02:00
emxx_udc staging: emxx_udc: add braces to if-else block 2016-09-16 10:10:34 +02:00
fbtft Staging: fbtft: Use !x instead of x == NULL. 2016-09-18 12:38:27 +02:00
fsl-mc staging: fsl-mc: remove .owner field for driver 2016-09-16 10:22:35 +02:00
fwserial staging: fwserial: fix checkpatch permission warnings 2016-09-13 15:44:46 +02:00
gdm724x staging: gdm724x: Remove unnecessary blank line 2016-09-16 10:10:34 +02:00
goldfish staging: goldfish: audio: fix compiliation on arm 2016-03-11 22:09:09 -08:00
gs_fpgaboot staging: gs_fpgaboot: Remove FSF address from GPL notice 2016-09-16 10:10:34 +02:00
i4l staging: i4l: correct misspelled "ressources" to "resources" 2016-09-16 10:31:18 +02:00
iio Second set of iio new device support, features and cleanups for the 4.9 cycle. 2016-09-14 20:42:03 +02:00
ks7010 Staging: ks7010: Drop memory allocation cast. 2016-09-18 12:38:27 +02:00
lustre staging: lustre: ptlrpc: fix race between connect vs resend 2016-09-19 09:53:46 +02:00
media staging: media: davinci_vpfe: Replace explicit NULL comparison with ! operator 2016-09-17 23:36:53 +02:00
most staging: most: hdm-dim2: monitor atx DBR space 2016-09-15 19:23:29 +02:00
mt29f_spinand staging: mt29f_spinand: set ECC algorithm explicitly 2016-05-05 23:52:04 +02:00
netlogic Staging: netlogic: Remove unused function 2016-09-16 10:10:34 +02:00
nvec Staging: nvec: removes a useless cast on a void pointer 2016-03-28 07:30:36 -07:00
octeon Staging: octeon: ethernet-rx: fixed three redundant blank line style issues 2016-09-18 09:13:35 +02:00
octeon-usb staging: octeon-usb: correct driver name in Kconfig help text 2016-08-30 19:09:47 +02:00
olpc_dcon Revert "staging: olpc_dcon: Replace a bit shift by a use of BIT." 2016-09-18 13:09:50 +02:00
rtl8188eu staging: rtl8188eu: core: Add spaces around operators 2016-09-18 12:36:39 +02:00
rtl8192e Staging: rtl8192e: Use !x instead of x == NULL 2016-09-18 12:37:43 +02:00
rtl8192u staging: rtl8192u: do not use undefined $(TOPDIR) in Makefile 2016-09-12 12:29:27 +02:00
rtl8712 staging: rtl8712: Rename misspelt macro 2016-09-17 23:36:53 +02:00
rts5208 staging: rts5208: rtsx_chip: Add space around binary operators 2016-09-17 23:36:52 +02:00
skein staging: skein: cleanup: align code to parentheses 2016-05-03 14:07:11 -07:00
slicoss staging: slicoss: Remove unnecessary braces {} 2016-09-16 09:55:33 +02:00
sm750fb staging: sm750fb: Change 'uint32_t' to 'u32' 2016-09-16 09:49:56 +02:00
speakup speakup: Add spinlock in synth_direct_store 2016-09-12 13:13:25 +02:00
unisys staging: unisys: visorbus: cleanup include listings 2016-09-12 13:28:49 +02:00
vme drivers: staging: vme: convert to octal notation for permission bits 2016-09-17 23:36:53 +02:00
vt6655 staging: vt6655: device_main: Replace NULL comparison with !x 2016-09-18 12:41:48 +02:00
vt6656 staging: vt6656: usbpipe.c: Fix checkpatch warning 2016-08-30 19:09:47 +02:00
wilc1000 staging: wilc1000: Use sizeof type *pointer instead of sizeof type 2016-09-17 23:32:13 +02:00
wlan-ng staging: wlan-ng: Remove the typedef to the 'wlandevice' structure 2016-09-18 12:39:31 +02:00
xgifb Staging: xgifb: Compress return logic 2016-09-18 12:37:43 +02:00
Kconfig staging: Remove rtl8723au driver 2016-09-10 15:21:43 +02:00
Makefile staging: Remove rtl8723au driver 2016-09-10 15:21:43 +02:00