diff options
| author | Dennis Zhou <dennis@kernel.org> | 2018-11-01 17:24:10 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2018-11-01 21:59:53 -0400 |
| commit | b5f2954d30c77649bce9c27e7a0a94299d9cfdf8 (patch) | |
| tree | f5dd932dc087c3a60410e82c70be1daf92d350a7 /include/linux/writeback.h | |
| parent | 153fcd5f6d93b8e1e4040b1337f564a10f8d93af (diff) | |
blkcg: revert blkcg cleanups series
This reverts a series committed earlier due to null pointer exception
bug report in [1]. It seems there are edge case interactions that I did
not consider and will need some time to understand what causes the
adverse interactions.
The original series can be found in [2] with a follow up series in [3].
[1] https://www.spinics.net/lists/cgroups/msg20719.html
[2] https://lore.kernel.org/lkml/20180911184137.35897-1-dennisszhou@gmail.com/
[3] https://lore.kernel.org/lkml/20181020185612.51587-1-dennis@kernel.org/
This reverts the following commits:
d459d853c2ed, b2c3fa546705, 101246ec02b5, b3b9f24f5fcc, e2b0989954ae,
f0fcb3ec89f3, c839e7a03f92, bdc2491708c4, 74b7c02a9bc1, 5bf9a1f3b4ef,
a7b39b4e961c, 07b05bcc3213, 49f4c2dc2b50, 27e6fa996c53
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/writeback.h')
| -rw-r--r-- | include/linux/writeback.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 738a0c24874f..fdfd04e348f6 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h | |||
| @@ -246,8 +246,7 @@ static inline void wbc_attach_fdatawrite_inode(struct writeback_control *wbc, | |||
| 246 | * | 246 | * |
| 247 | * @bio is a part of the writeback in progress controlled by @wbc. Perform | 247 | * @bio is a part of the writeback in progress controlled by @wbc. Perform |
| 248 | * writeback specific initialization. This is used to apply the cgroup | 248 | * writeback specific initialization. This is used to apply the cgroup |
| 249 | * writeback context. Must be called after the bio has been associated with | 249 | * writeback context. |
| 250 | * a device. | ||
| 251 | */ | 250 | */ |
| 252 | static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) | 251 | static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) |
| 253 | { | 252 | { |
| @@ -258,7 +257,7 @@ static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) | |||
| 258 | * regular writeback instead of writing things out itself. | 257 | * regular writeback instead of writing things out itself. |
| 259 | */ | 258 | */ |
| 260 | if (wbc->wb) | 259 | if (wbc->wb) |
| 261 | bio_associate_blkg_from_css(bio, wbc->wb->blkcg_css); | 260 | bio_associate_blkcg(bio, wbc->wb->blkcg_css); |
| 262 | } | 261 | } |
| 263 | 262 | ||
| 264 | #else /* CONFIG_CGROUP_WRITEBACK */ | 263 | #else /* CONFIG_CGROUP_WRITEBACK */ |
