Home
last modified time | relevance | path

Searched refs:iolock (Results 1 – 15 of 15) sorted by relevance

/linux/fs/xfs/
H A Dxfs_file.c215 * If a reflink remap is in progress we always need to take the iolock in xfs_ilock_iocb_for_write()
352 * function dropped the iolock and reacquired it exclusively and the caller
359 unsigned int *iolock, in xfs_file_write_zero_eof()
390 * If zeroing is needed and we are currently holding the iolock in xfs_file_write_zero_eof()
394 if (*iolock == XFS_IOLOCK_SHARED) { in xfs_file_write_zero_eof()
395 xfs_iunlock(ip, *iolock); in xfs_file_write_zero_eof()
396 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_zero_eof()
397 xfs_ilock(ip, *iolock); in xfs_file_write_zero_eof()
425 * Called with the iolock held either shared and exclusive according to
426 * @iolock, an
358 xfs_file_write_zero_eof(struct kiocb * iocb,struct iov_iter * from,unsigned int * iolock,size_t count,bool * drained_dio,struct xfs_zone_alloc_ctx * ac) xfs_file_write_zero_eof() argument
432 xfs_file_write_checks(struct kiocb * iocb,struct iov_iter * from,unsigned int * iolock,struct xfs_zone_alloc_ctx * ac) xfs_file_write_checks() argument
678 unsigned int iolock = XFS_IOLOCK_SHARED; xfs_file_dio_write_aligned() local
751 unsigned int iolock = XFS_IOLOCK_SHARED; xfs_file_dio_write_atomic() local
826 unsigned int iolock = XFS_IOLOCK_SHARED; xfs_file_dio_write_unaligned() local
921 unsigned int iolock = XFS_IOLOCK_EXCL; xfs_file_dax_write() local
964 unsigned int iolock; xfs_file_buffered_write() local
1027 unsigned int iolock = XFS_IOLOCK_EXCL; xfs_file_buffered_write_zoned() local
1390 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; __xfs_file_fallocate() local
[all...]
H A Dxfs_pnfs.h12 int xfs_break_leased_layouts(struct inode *inode, uint *iolock,
16 xfs_break_leased_layouts(struct inode *inode, uint *iolock, bool *did_unlock) in xfs_break_leased_layouts() argument
H A Dxfs_zone_gc.c836 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL;
854 * Cycle through the iolock and wait for direct I/O and layouts to in xfs_zone_gc_finish_chunk()
861 xfs_ilock(ip, iolock); in xfs_zone_gc_finish_chunk()
862 error = xfs_break_layouts(VFS_I(ip), &iolock, BREAK_UNMAP); in xfs_zone_gc_finish_chunk()
865 xfs_iunlock(ip, iolock); in xfs_zone_gc_finish_chunk()
841 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; xfs_zone_gc_finish_chunk() local
H A Dxfs_iops.c1160 uint iolock; in xfs_vn_setattr() local
1163 iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_vn_setattr()
1165 error = xfs_break_layouts(inode, &iolock, BREAK_UNMAP); in xfs_vn_setattr()
H A Dxfs_inode.h608 int xfs_break_layouts(struct inode *inode, uint *iolock,
H A Dxfs_inode.c377 * the iolock, the mmaplock or the ilock, but not more than one at a time. If we
477 * xfs_lock_two_inodes() can only be used to lock ilock. The iolock and
1336 * Note: don't bother with iolock here since lockdep complains about in xfs_inode_needs_inactive()
1426 * Note: don't bother with iolock here since lockdep complains in xfs_inactive()
2688 * Grab the exclusive iolock for a data copy from src to dest, making sure to
3023 uint *iolock, in xfs_break_layouts() argument
3040 error = xfs_break_leased_layouts(inode, iolock, &retry); in xfs_break_layouts()
/linux/net/unix/
H A Dunix_bpf.c32 mutex_unlock(&u->iolock); in unix_msg_wait_data()
34 mutex_lock(&u->iolock); in unix_msg_wait_data()
68 mutex_lock(&u->iolock); in unix_bpf_recvmsg()
71 mutex_unlock(&u->iolock); in unix_bpf_recvmsg()
87 mutex_unlock(&u->iolock); in unix_bpf_recvmsg()
93 mutex_unlock(&u->iolock); in unix_bpf_recvmsg()
H A Daf_unix.c1121 mutex_init(&u->iolock); /* single task reading lock */ in unix_create1()
2573 mutex_lock(&u->iolock); in __unix_dgram_recvmsg()
2584 mutex_unlock(&u->iolock); in __unix_dgram_recvmsg()
2659 mutex_unlock(&u->iolock); in __unix_dgram_recvmsg()
2684 mutex_lock(&u->iolock); in unix_read_skb()
2686 mutex_unlock(&u->iolock); in unix_read_skb()
2754 mutex_lock(&u->iolock); in unix_stream_recv_urg()
2761 mutex_unlock(&u->iolock); in unix_stream_recv_urg()
2786 mutex_unlock(&u->iolock); in unix_stream_recv_urg()
2864 mutex_lock(&u->iolock); in unix_stream_read_skb()
[all …]
/linux/drivers/scsi/aic94xx/
H A Daic94xx_reg.c203 spin_lock_irqsave(&asd_ha->iolock, flags); \
218 spin_unlock_irqrestore(&asd_ha->iolock, flags); \
254 spin_lock_irqsave(&asd_ha->iolock, flags); \
269 spin_unlock_irqrestore(&asd_ha->iolock, flags); \
290 spin_lock_irqsave(&asd_ha->iolock, flags); in asd_read_reg_string()
293 spin_unlock_irqrestore(&asd_ha->iolock, flags); in asd_read_reg_string()
309 spin_lock_irqsave(&asd_ha->iolock, flags); in asd_write_reg_string()
312 spin_unlock_irqrestore(&asd_ha->iolock, flags); in asd_write_reg_string()
H A Daic94xx_hwi.h189 spinlock_t iolock; member
H A Daic94xx_hwi.c178 spin_lock_init(&asd_ha->iolock); in asd_init_sw()
/linux/include/net/
H A Daf_unix.h41 struct mutex iolock, bindlock; member
/linux/include/linux/mfd/
H A Dmax8998-private.h144 struct mutex iolock; member
H A Dmax8997-private.h375 struct mutex iolock; member
/linux/drivers/net/hamradio/
H A Dscc.c242 static DEFINE_SPINLOCK(iolock); /* Guards paired accesses */
249 spin_lock_irqsave(&iolock, flags); in InReg()
259 spin_unlock_irqrestore(&iolock, flags); in InReg()
267 spin_lock_irqsave(&iolock, flags); in OutReg()
275 spin_unlock_irqrestore(&iolock, flags); in OutReg()