linux/drivers/staging
Li Dongyang b4f840c15a staging: lustre: mdt: fail FMODE_WRITE open if the client is read only
O_WRONLY/O_RDWR open on a file will get EROFS on a read only client,
but the rpc gets sent to the mdt anyway.
mdt will increase the mot_write_count of the mdt object, blocking
subsequent FMODE_EXEC open to the same file.

This patch makes sure we fail the FMODE_WRITE open with EROFS on the
client straight away without sending the rpc to mdt.

Signed-off-by: Li Dongyang <dongyang.li@anu.edu.au>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7727
Reviewed-on: http://review.whamcloud.com/18242
Reviewed-by: Ian Costello <icostello@ddn.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@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>
2016-12-06 10:47:55 +01:00
..
android staging: android: ashmem: clean up range inline functions 2016-12-06 10:18:07 +01:00
board staging: board: Remove calls to of_genpd_get_from_provider() 2016-09-13 02:49:33 +02:00
clocking-wizard staging: clocking-wizard: Fix incorrect type of speed grade 2016-10-25 09:54:32 +02:00
comedi Staging: comedi: kcomedilib: Add module_init/exit function 2016-12-06 10:08:01 +01:00
dgnc staging: dgnc: fix unnamed parameter 2016-12-06 10:18:07 +01:00
emxx_udc staging: emxx_udc: emxx_udc.c Align parenthesis 2016-11-23 10:05:39 +01:00
fbtft staging: fbtft: Fix 'line over 80 characters' 2016-11-10 13:55:02 +01:00
fsl-mc Staging: fsl-mc: include: mc: Kernel type 'int' preferred over 's16' 2016-11-15 11:01:54 +01:00
fwserial Staging: fwserial: remove unused function fill_unplug_req 2016-10-16 10:25:09 +02:00
gdm724x staging: gdm724x: Remove one blank line in sequence 2016-11-29 21:57:15 +01:00
goldfish
greybus staging: Greybus: Remove unnecessary braces for single statement block 2016-11-19 14:23:09 +01:00
gs_fpgaboot Staging: gs_fpgaboot: Use octal permissions '0444' 2016-10-25 09:40:44 +02:00
i4l staging: i4l: pcbit: remove duplicated include from capi.c 2016-10-25 09:59:48 +02:00
iio staging: iio: tsl2583: move out of staging 2016-11-13 13:07:33 +00:00
ks7010 Staging: ks7010: ks7010_stio.h: fixed coding style error 2016-12-06 10:20:03 +01:00
lustre staging: lustre: mdt: fail FMODE_WRITE open if the client is read only 2016-12-06 10:47:55 +01:00
media Merge 4.9-rc5 into staging-next 2016-11-14 08:53:56 +01:00
most staging: most: Eliminate usage of symbolic permissions 2016-11-29 21:57:14 +01:00
mt29f_spinand
netlogic Staging: netlogic: Compress return logic into one line 2016-10-16 10:27:33 +02:00
nvec staging: nvec: remove managed resource from PS2 driver 2016-11-07 11:48:25 +01:00
octeon Staging: octeon: Add missing of_node_put after calling of_parse_phandle. 2016-09-20 13:51:24 +02:00
octeon-usb staging: octeon-usb: Remove unnecessary assignment 2016-09-22 11:54:48 +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: Fix code indention found by checkpatch. 2016-10-30 11:09:03 -04:00
rtl8192e staging: rtl8192e: Added new line after declaration 2016-11-15 11:01:54 +01:00
rtl8192u staging: rtl8192u: Standardize test for NULL. 2016-10-30 11:09:03 -04:00
rtl8712 Staging:rtl8712: Fixed coding style issue 2016-12-06 10:18:07 +01:00
rts5208 staging: rts5208: rtsx.c: Fix invalid use of sizeof in rtsx_probe() 2016-10-25 09:59:48 +02:00
skein staging: skein: threefish_block.c Remove blank lines 2016-11-21 11:10:56 +01:00
slicoss staging: slicoss: remove UPDATE_STATS_GB macro and inline code 2016-11-29 21:57:14 +01:00
sm750fb staging: sm750fb: fix tabstop style warning 2016-11-30 12:59:53 +01:00
speakup staging: speakup: speakup_soft.c Align parenthesis 2016-11-23 10:07:32 +01:00
unisys staging: unisys: visorbus: Remove two passthrough postcode macros 2016-12-01 09:58:48 +01:00
vc04_services staging: vc04_services: add HAS_DMA dependancy 2016-11-17 09:39:59 +01:00
vme staging: vme: vme_user.c Spelling corrections 2016-11-19 14:21:58 +01:00
vt6655 staging: vt6655: Add spaces around + 2016-12-06 10:18:07 +01:00
vt6656 staging: vt6656: Fix coding style warnings on Block comments 2016-11-21 11:13:14 +01:00
wilc1000 staging: wilc1000: simplify vif[i]->ndev accesses 2016-11-16 18:30:22 +01:00
wlan-ng Staging: wlan-ng: hfa384x_usb.c Fixed too long code line warnings. 2016-12-06 10:18:07 +01:00
xgifb staging: xgifb: XGI_main.h Align data columns 2016-11-19 14:17:51 +01:00
Kconfig staging: add bcm2708 vchiq driver 2016-10-02 15:40:04 +02:00
Makefile staging: vc04_services: use bcm2835 consequently 2016-10-27 15:23:54 +02:00