]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtip32xx: Handle safe removal during IO
authorAsai Thambi SP <asamymuthupa@micron.com>
Thu, 25 Feb 2016 05:18:10 +0000 (21:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:51 +0000 (09:08 -0700)
commite2e6e22464ac6fb53e60d74ddf02fb829959ab9c
tree82178d2d3748bec9aaf8a847505ef9b0983ca837
parente241a8dab98aff4d79d36e8cc71c4487c909bdd5
mtip32xx: Handle safe removal during IO

commit 51c6570eb922146470c2fe660c34585414679bd6 upstream.

Flush inflight IOs using fsync_bdev() when the device is safely
removed. Also, block further IOs in device open function.

Signed-off-by: Selvan Mani <smani@micron.com>
Signed-off-by: Rajesh Kumar Sambandam <rsambandam@micron.com>
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/mtip32xx/mtip32xx.c
drivers/block/mtip32xx/mtip32xx.h