]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit10273170fd5602d8090b1312e66ad4746ab02c94
treefabf2633960f4fdbbc1a6963c3fe2011577c42b4
parentc18a1e09008de7d8bd82b046d38a88f4285d53f9
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