aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index ba76b68c52ff..368189fd4056 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -282,7 +282,7 @@ __releases(&fc->lock)
282 wake_up_all(&fc->blocked_waitq); 282 wake_up_all(&fc->blocked_waitq);
283 } 283 }
284 if (fc->num_background == FUSE_CONGESTION_THRESHOLD && 284 if (fc->num_background == FUSE_CONGESTION_THRESHOLD &&
285 fc->connected) { 285 fc->connected && fc->bdi_initialized) {
286 clear_bdi_congested(&fc->bdi, READ); 286 clear_bdi_congested(&fc->bdi, READ);
287 clear_bdi_congested(&fc->bdi, WRITE); 287 clear_bdi_congested(&fc->bdi, WRITE);
288 } 288 }
@@ -408,7 +408,8 @@ static void fuse_request_send_nowait_locked(struct fuse_conn *fc,
408 fc->num_background++; 408 fc->num_background++;
409 if (fc->num_background == FUSE_MAX_BACKGROUND) 409 if (fc->num_background == FUSE_MAX_BACKGROUND)
410 fc->blocked = 1; 410 fc->blocked = 1;
411 if (fc->num_background == FUSE_CONGESTION_THRESHOLD) { 411 if (fc->num_background == FUSE_CONGESTION_THRESHOLD &&
412 fc->bdi_initialized) {
412 set_bdi_congested(&fc->bdi, READ); 413 set_bdi_congested(&fc->bdi, READ);
413 set_bdi_congested(&fc->bdi, WRITE); 414 set_bdi_congested(&fc->bdi, WRITE);
414 } 415 }