mtd: blktrans: do blk_cleanup_queue when it is really safe to do so
authorMaxim Levitsky <maximlevitsky@gmail.com>
Sat, 27 Feb 2010 00:31:51 +0000 (02:31 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 9 Mar 2010 02:57:42 +0000 (18:57 -0800)
commite4d64cab99a2d659bf9d6fe9ab67666bceb68d87
tree2a43c4ccfdb2fc35d4df304d139943ca73504029
parent7de6f798e13093536b6cb229213db2fab6e6555f
mtd: blktrans: do blk_cleanup_queue when it is really safe to do so

I was calling it in del_mtd_blktrans_dev, but ->request_fn could
still be running at that point, thus defer this call
to blktrans_dev_release

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtd_blkdevs.c