summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/3w-xxxx.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-04-03 10:27:17 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-04-12 06:52:48 -0400
commit19dfc1f5f2ef03a52aa30c8257c5745edef23f55 (patch)
tree3846636f530b1e23d685b1652cd73ab8707445fb /drivers/scsi/3w-xxxx.h
parenteab87235c0f5979503a547f836a93a3d327c4201 (diff)
downloadtalos-op-linux-19dfc1f5f2ef03a52aa30c8257c5745edef23f55.tar.gz
talos-op-linux-19dfc1f5f2ef03a52aa30c8257c5745edef23f55.zip
cifs: fix the race in cifs_writev()
O_APPEND handling there hadn't been completely fixed by Pavel's patch; it checks the right value, but it's racy - we can't really do that until i_mutex has been taken. Fix by switching to __generic_file_aio_write() (open-coding generic_file_aio_write(), actually) and pulling mutex_lock() above inode_size_read(). Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/scsi/3w-xxxx.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud