3.17. 3.18 compilation fixes.

Summary:
3.17. 3.18 compilation fixes.

Test Plan:

Reviewers:

CC:

Task ID: #

Blame Rev:
Remove dm_target from cache list before freeing it

Function 'flashcache_dtr' destroys the dmc object before removing it
from the cache list. This causes a kernel oops with 'unable to handle
kernel paging request' in case the functions 'flashcache_dtr' and
'flashcache_notify_reboot' are called at the same time since the latter
tries to access memory that the first one has freed.

This patch fixes the above bug by removing the dmc object from the
cache list before deallocating it.
Merge pull request #194 from iliastsi/master

Remove dm_target from cache list before freeing it
Fixed typo.
Merge pull request #196 from flygoast/master

Fixed typo.