-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block: block: Don't count_vm_events for discard bio in submit_bio. cfq: fix recursive call in cfq_blkiocg_update_completion_stats() cfq-iosched: Fixed boot warning with BLK_CGROUP=y and CFQ_GROUP_IOSCHED=n cfq: Don't allow queue merges for queues that have no process references block: fix DISCARD_BARRIER requests cciss: set SCSI max cmd len to 16, as default is wrong cpqarray: fix two more wrong section type cpqarray: fix wrong __init type on pci probe function drbd: Fixed a race between disk-attach and unexpected state changes writeback: fix pin_sb_for_writeback writeback: add missing requeue_io in writeback_inodes_wb writeback: simplify and split bdi_start_writeback writeback: simplify wakeup_flusher_threads writeback: fix writeback_inodes_wb from writeback_inodes_sb writeback: enforce s_umount locking in writeback_inodes_sb writeback: queue work on stack in writeback_inodes_sb writeback: fix writeback completion notifications
- Loading branch information
Showing
12 changed files
with
280 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
#ifndef _CFQ_H | ||
#define _CFQ_H | ||
#include "blk-cgroup.h" | ||
|
||
#ifdef CONFIG_CFQ_GROUP_IOSCHED | ||
static inline void cfq_blkiocg_update_io_add_stats(struct blkio_group *blkg, | ||
struct blkio_group *curr_blkg, bool direction, bool sync) | ||
{ | ||
blkiocg_update_io_add_stats(blkg, curr_blkg, direction, sync); | ||
} | ||
|
||
static inline void cfq_blkiocg_update_dequeue_stats(struct blkio_group *blkg, | ||
unsigned long dequeue) | ||
{ | ||
blkiocg_update_dequeue_stats(blkg, dequeue); | ||
} | ||
|
||
static inline void cfq_blkiocg_update_timeslice_used(struct blkio_group *blkg, | ||
unsigned long time) | ||
{ | ||
blkiocg_update_timeslice_used(blkg, time); | ||
} | ||
|
||
static inline void cfq_blkiocg_set_start_empty_time(struct blkio_group *blkg) | ||
{ | ||
blkiocg_set_start_empty_time(blkg); | ||
} | ||
|
||
static inline void cfq_blkiocg_update_io_remove_stats(struct blkio_group *blkg, | ||
bool direction, bool sync) | ||
{ | ||
blkiocg_update_io_remove_stats(blkg, direction, sync); | ||
} | ||
|
||
static inline void cfq_blkiocg_update_io_merged_stats(struct blkio_group *blkg, | ||
bool direction, bool sync) | ||
{ | ||
blkiocg_update_io_merged_stats(blkg, direction, sync); | ||
} | ||
|
||
static inline void cfq_blkiocg_update_idle_time_stats(struct blkio_group *blkg) | ||
{ | ||
blkiocg_update_idle_time_stats(blkg); | ||
} | ||
|
||
static inline void | ||
cfq_blkiocg_update_avg_queue_size_stats(struct blkio_group *blkg) | ||
{ | ||
blkiocg_update_avg_queue_size_stats(blkg); | ||
} | ||
|
||
static inline void | ||
cfq_blkiocg_update_set_idle_time_stats(struct blkio_group *blkg) | ||
{ | ||
blkiocg_update_set_idle_time_stats(blkg); | ||
} | ||
|
||
static inline void cfq_blkiocg_update_dispatch_stats(struct blkio_group *blkg, | ||
uint64_t bytes, bool direction, bool sync) | ||
{ | ||
blkiocg_update_dispatch_stats(blkg, bytes, direction, sync); | ||
} | ||
|
||
static inline void cfq_blkiocg_update_completion_stats(struct blkio_group *blkg, uint64_t start_time, uint64_t io_start_time, bool direction, bool sync) | ||
{ | ||
blkiocg_update_completion_stats(blkg, start_time, io_start_time, | ||
direction, sync); | ||
} | ||
|
||
static inline void cfq_blkiocg_add_blkio_group(struct blkio_cgroup *blkcg, | ||
struct blkio_group *blkg, void *key, dev_t dev) { | ||
blkiocg_add_blkio_group(blkcg, blkg, key, dev); | ||
} | ||
|
||
static inline int cfq_blkiocg_del_blkio_group(struct blkio_group *blkg) | ||
{ | ||
return blkiocg_del_blkio_group(blkg); | ||
} | ||
|
||
#else /* CFQ_GROUP_IOSCHED */ | ||
static inline void cfq_blkiocg_update_io_add_stats(struct blkio_group *blkg, | ||
struct blkio_group *curr_blkg, bool direction, bool sync) {} | ||
|
||
static inline void cfq_blkiocg_update_dequeue_stats(struct blkio_group *blkg, | ||
unsigned long dequeue) {} | ||
|
||
static inline void cfq_blkiocg_update_timeslice_used(struct blkio_group *blkg, | ||
unsigned long time) {} | ||
static inline void cfq_blkiocg_set_start_empty_time(struct blkio_group *blkg) {} | ||
static inline void cfq_blkiocg_update_io_remove_stats(struct blkio_group *blkg, | ||
bool direction, bool sync) {} | ||
static inline void cfq_blkiocg_update_io_merged_stats(struct blkio_group *blkg, | ||
bool direction, bool sync) {} | ||
static inline void cfq_blkiocg_update_idle_time_stats(struct blkio_group *blkg) | ||
{ | ||
} | ||
static inline void | ||
cfq_blkiocg_update_avg_queue_size_stats(struct blkio_group *blkg) {} | ||
|
||
static inline void | ||
cfq_blkiocg_update_set_idle_time_stats(struct blkio_group *blkg) {} | ||
|
||
static inline void cfq_blkiocg_update_dispatch_stats(struct blkio_group *blkg, | ||
uint64_t bytes, bool direction, bool sync) {} | ||
static inline void cfq_blkiocg_update_completion_stats(struct blkio_group *blkg, uint64_t start_time, uint64_t io_start_time, bool direction, bool sync) {} | ||
|
||
static inline void cfq_blkiocg_add_blkio_group(struct blkio_cgroup *blkcg, | ||
struct blkio_group *blkg, void *key, dev_t dev) {} | ||
static inline int cfq_blkiocg_del_blkio_group(struct blkio_group *blkg) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif /* CFQ_GROUP_IOSCHED */ | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.