diff options
Diffstat (limited to 'fs/fscache')
-rw-r--r-- | fs/fscache/operation.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/fscache/operation.c b/fs/fscache/operation.c index 6935901bce38..318071aca217 100644 --- a/fs/fscache/operation.c +++ b/fs/fscache/operation.c | |||
@@ -260,15 +260,14 @@ void fscache_abort_object(struct fscache_object *object) | |||
260 | } | 260 | } |
261 | 261 | ||
262 | /* | 262 | /* |
263 | * jump start the operation processing on an object | 263 | * Jump start the operation processing on an object. The caller must hold |
264 | * object->lock. | ||
264 | */ | 265 | */ |
265 | void fscache_start_operations(struct fscache_object *object) | 266 | void fscache_start_operations(struct fscache_object *object) |
266 | { | 267 | { |
267 | struct fscache_operation *op; | 268 | struct fscache_operation *op; |
268 | bool stop = false; | 269 | bool stop = false; |
269 | 270 | ||
270 | ASSERT(spin_is_locked(&object->lock)); | ||
271 | |||
272 | while (!list_empty(&object->pending_ops) && !stop) { | 271 | while (!list_empty(&object->pending_ops) && !stop) { |
273 | op = list_entry(object->pending_ops.next, | 272 | op = list_entry(object->pending_ops.next, |
274 | struct fscache_operation, pend_link); | 273 | struct fscache_operation, pend_link); |