Skip to content

Commit

Permalink
dm writecache: fix typo in error msg for creating writecache_flush_th…
Browse files Browse the repository at this point in the history
…read

The error msg should be "flush thread" instead of "endio thread"
for writecache_flush_thread.

Signed-off-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Shenghui Wang authored and Mike Snitzer committed Dec 18, 2018
1 parent 53b4716 commit e8ea141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-writecache.c
Original file line number Diff line number Diff line change
Expand Up @@ -2061,7 +2061,7 @@ static int writecache_ctr(struct dm_target *ti, unsigned argc, char **argv)
if (IS_ERR(wc->flush_thread)) {
r = PTR_ERR(wc->flush_thread);
wc->flush_thread = NULL;
ti->error = "Couldn't spawn endio thread";
ti->error = "Couldn't spawn flush thread";
goto bad;
}
wake_up_process(wc->flush_thread);
Expand Down

0 comments on commit e8ea141

Please sign in to comment.