mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Add UNPLUG traces to all appropriate places
Added blk_unplug interface, allowing all invocations of unplugs to result in a generated blktrace UNPLUG. Signed-off-by: Alan D. Brunelle <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
d85532ed28
commit
2ad8b1ef11
11 changed files with 26 additions and 27 deletions
|
|
@ -1207,8 +1207,7 @@ int bitmap_startwrite(struct bitmap *bitmap, sector_t offset, unsigned long sect
|
|||
prepare_to_wait(&bitmap->overflow_wait, &__wait,
|
||||
TASK_UNINTERRUPTIBLE);
|
||||
spin_unlock_irq(&bitmap->lock);
|
||||
bitmap->mddev->queue
|
||||
->unplug_fn(bitmap->mddev->queue);
|
||||
blk_unplug(bitmap->mddev->queue);
|
||||
schedule();
|
||||
finish_wait(&bitmap->overflow_wait, &__wait);
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -1000,8 +1000,7 @@ void dm_table_unplug_all(struct dm_table *t)
|
|||
struct dm_dev *dd = list_entry(d, struct dm_dev, list);
|
||||
struct request_queue *q = bdev_get_queue(dd->bdev);
|
||||
|
||||
if (q->unplug_fn)
|
||||
q->unplug_fn(q);
|
||||
blk_unplug(q);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,8 +87,7 @@ static void linear_unplug(struct request_queue *q)
|
|||
|
||||
for (i=0; i < mddev->raid_disks; i++) {
|
||||
struct request_queue *r_queue = bdev_get_queue(conf->disks[i].rdev->bdev);
|
||||
if (r_queue->unplug_fn)
|
||||
r_queue->unplug_fn(r_queue);
|
||||
blk_unplug(r_queue);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5445,7 +5445,7 @@ void md_do_sync(mddev_t *mddev)
|
|||
* about not overloading the IO subsystem. (things like an
|
||||
* e2fsck being done on the RAID array should execute fast)
|
||||
*/
|
||||
mddev->queue->unplug_fn(mddev->queue);
|
||||
blk_unplug(mddev->queue);
|
||||
cond_resched();
|
||||
|
||||
currspeed = ((unsigned long)(io_sectors-mddev->resync_mark_cnt))/2
|
||||
|
|
@ -5464,7 +5464,7 @@ void md_do_sync(mddev_t *mddev)
|
|||
* this also signals 'finished resyncing' to md_stop
|
||||
*/
|
||||
out:
|
||||
mddev->queue->unplug_fn(mddev->queue);
|
||||
blk_unplug(mddev->queue);
|
||||
|
||||
wait_event(mddev->recovery_wait, !atomic_read(&mddev->recovery_active));
|
||||
|
||||
|
|
|
|||
|
|
@ -125,8 +125,7 @@ static void unplug_slaves(mddev_t *mddev)
|
|||
atomic_inc(&rdev->nr_pending);
|
||||
rcu_read_unlock();
|
||||
|
||||
if (r_queue->unplug_fn)
|
||||
r_queue->unplug_fn(r_queue);
|
||||
blk_unplug(r_queue);
|
||||
|
||||
rdev_dec_pending(rdev, mddev);
|
||||
rcu_read_lock();
|
||||
|
|
|
|||
|
|
@ -35,8 +35,7 @@ static void raid0_unplug(struct request_queue *q)
|
|||
for (i=0; i<mddev->raid_disks; i++) {
|
||||
struct request_queue *r_queue = bdev_get_queue(devlist[i]->bdev);
|
||||
|
||||
if (r_queue->unplug_fn)
|
||||
r_queue->unplug_fn(r_queue);
|
||||
blk_unplug(r_queue);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -549,8 +549,7 @@ static void unplug_slaves(mddev_t *mddev)
|
|||
atomic_inc(&rdev->nr_pending);
|
||||
rcu_read_unlock();
|
||||
|
||||
if (r_queue->unplug_fn)
|
||||
r_queue->unplug_fn(r_queue);
|
||||
blk_unplug(r_queue);
|
||||
|
||||
rdev_dec_pending(rdev, mddev);
|
||||
rcu_read_lock();
|
||||
|
|
|
|||
|
|
@ -593,8 +593,7 @@ static void unplug_slaves(mddev_t *mddev)
|
|||
atomic_inc(&rdev->nr_pending);
|
||||
rcu_read_unlock();
|
||||
|
||||
if (r_queue->unplug_fn)
|
||||
r_queue->unplug_fn(r_queue);
|
||||
blk_unplug(r_queue);
|
||||
|
||||
rdev_dec_pending(rdev, mddev);
|
||||
rcu_read_lock();
|
||||
|
|
|
|||
|
|
@ -3186,8 +3186,7 @@ static void unplug_slaves(mddev_t *mddev)
|
|||
atomic_inc(&rdev->nr_pending);
|
||||
rcu_read_unlock();
|
||||
|
||||
if (r_queue->unplug_fn)
|
||||
r_queue->unplug_fn(r_queue);
|
||||
blk_unplug(r_queue);
|
||||
|
||||
rdev_dec_pending(rdev, mddev);
|
||||
rcu_read_lock();
|
||||
|
|
|
|||
Loading…
Reference in a new issue