aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2020-09-28 15:51:08 +0000
committerDarrick J. Wong <[email protected]>2020-09-28 15:51:08 +0000
commitc3d4ed1abecfcfc801199cfadb71f5b80e025d9e (patch)
treee9c9f9b12f6161b19673284bfa80719a115d8b59 /drivers/usb/cdns3/cdns3-imx.c
parentiomap: Set all uptodate bits for an Uptodate page (diff)
downloadkernel-c3d4ed1abecfcfc801199cfadb71f5b80e025d9e.tar.gz
kernel-c3d4ed1abecfcfc801199cfadb71f5b80e025d9e.zip
iomap: Allow filesystem to call iomap_dio_complete without i_rwsem
This is to avoid the deadlock caused in btrfs because of O_DIRECT | O_DSYNC. Filesystems such as btrfs require i_rwsem while performing sync on a file. iomap_dio_rw() is called under i_rw_sem. This leads to a deadlock because of: iomap_dio_complete() generic_write_sync() btrfs_sync_file() Separate out iomap_dio_complete() from iomap_dio_rw(), so filesystems can call iomap_dio_complete() after unlocking i_rwsem. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Goldwyn Rodrigues <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions