Skip to content
Commit b831281b authored by NeilBrown's avatar NeilBrown Committed by Jan Kara
Browse files

reiserfs: don't use congestion_wait()

Block devices do not, in general, report congestion any more, so this
congestion_wait() is effectively just a sleep.

It isn't entirely clear what is being waited for, but as we only wait
when j_async_throttle is elevated, it seems reasonable to stop waiting
when j_async_throttle becomes zero - or after the same timeout.

So change to use wait_event_event_timeout() for waiting, and
wake_up_var() to signal an end to waiting.

Link: https://lore.kernel.org/r/163712368225.13692.3419908086400748349@noble.neil.brown.name


Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent a48fc69f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment