]> git.baikalelectronics.ru Git - kernel.git/commit
md: fail if mddev->bio_set can't be created
authorMing Lei <tom.leiming@gmail.com>
Tue, 14 Feb 2017 15:29:00 +0000 (23:29 +0800)
committerShaohua Li <shli@fb.com>
Wed, 15 Feb 2017 19:23:24 +0000 (11:23 -0800)
commitdfaa39c6ebed3382a77adb97e40e17454f6cbd91
treefabf2633960f4fdbbc1a6963c3fe2011577c42b4
parent3b83dc51000322701061ba73c47f66aa4d52cced
md: fail if mddev->bio_set can't be created

The current behaviour is to fall back to allocate
bio from 'fs_bio_set', that isn't a correct way
because it might cause deadlock.

So this patch simply return failure if mddev->bio_set
can't be created.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c