summaryrefslogtreecommitdiff
path: root/block/blk-mq-tag.c
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2020-06-15 00:53:32 +0800
committerJens Axboe <axboe@kernel.dk>2020-06-14 16:47:56 -0600
commitee4a36f414617aaae01f93133e828363e7e9dd17 (patch)
tree64b9b74b22788eaefcb03660514aa68408598741 /block/blk-mq-tag.c
parentdcacbc1242c71e18fa9d2eadc5647e115c9c627d (diff)
bcache: use delayed kworker fo asynchronous devices registration
This patch changes the asynchronous registration kworker to a delayed kworker. There is probability queue_work() queues the async registration kworker to the same CPU (even though very little), then the process which writing sysfs interface to reigster bcache device may won't return immeidately. queue_delayed_work() in this patch will delay 10 jiffies before insert the kworker to run queue, which makes sure the registering process may always returns to user space in time. Fixes: 9e23ccf8f0a22 ("bcache: asynchronous devices registration") Signed-off-by: Coly Li <colyli@suse.de> Cc: Hannes Reinecke <hare@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-tag.c')
0 files changed, 0 insertions, 0 deletions