Lines Matching refs:busy
147 if (atomic_read(&mdev->busy) == 1) { in maple_vmu_read_block()
149 atomic_read(&mdev->busy) == 0, HZ); in maple_vmu_read_block()
150 if (atomic_read(&mdev->busy) == 1) { in maple_vmu_read_block()
158 atomic_set(&mdev->busy, 1); in maple_vmu_read_block()
162 atomic_set(&mdev->busy, 0); in maple_vmu_read_block()
173 (atomic_read(&mdev->busy) == 0 || in maple_vmu_read_block()
174 atomic_read(&mdev->busy) == 2), HZ * 3); in maple_vmu_read_block()
180 if (error || atomic_read(&mdev->busy) == 2) { in maple_vmu_read_block()
181 if (atomic_read(&mdev->busy) == 2) in maple_vmu_read_block()
183 atomic_set(&mdev->busy, 0); in maple_vmu_read_block()
189 atomic_set(&mdev->busy, 0); in maple_vmu_read_block()
252 if (atomic_read(&mdev->busy) == 1) { in maple_vmu_write_block()
254 atomic_read(&mdev->busy) == 0, HZ); in maple_vmu_write_block()
255 if (atomic_read(&mdev->busy) == 1) { in maple_vmu_write_block()
263 atomic_set(&mdev->busy, 1); in maple_vmu_write_block()
268 atomic_read(&mdev->busy) == 0, HZ/10); in maple_vmu_write_block()
271 atomic_set(&mdev->busy, 0); in maple_vmu_write_block()
274 if (atomic_read(&mdev->busy) == 2) { in maple_vmu_write_block()
275 atomic_set(&mdev->busy, 0); in maple_vmu_write_block()
282 atomic_set(&mdev->busy, 0); in maple_vmu_write_block()
655 if (atomic_read(&mdev->busy) == 1) { in vmu_connect()
657 atomic_read(&mdev->busy) == 0, HZ); in vmu_connect()
658 if (atomic_read(&mdev->busy) == 1) { in vmu_connect()
666 atomic_set(&mdev->busy, 1); in vmu_connect()