fuse: account as waiting before queuing for background
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 1 Jul 2015 14:25:56 +0000 (16:25 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 1 Jul 2015 14:25:56 +0000 (16:25 +0200)
commit5437f2417225dc89c785867f4790012668006abc
tree8b470061581fd912bce1a8996f6fa433ff24a671
parent73e0e738441b26a2dfc1ccdf1462cd1dc13c8cea
fuse: account as waiting before queuing for background

Move accounting of fc->num_waiting to the point where the request actually
starts waiting.  This is earlier than the current queue_request() for
background requests, since they might be waiting on the fc->bg_queue before
being queued on fc->pending.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
fs/fuse/dev.c