]> git.baikalelectronics.ru Git - kernel.git/commit
bio: use bio_kmalloc() in copy/map functions
authorTejun Heo <tj@kernel.org>
Wed, 15 Apr 2009 13:10:27 +0000 (22:10 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 22 Apr 2009 06:35:10 +0000 (08:35 +0200)
commitc120b0fd46b4f968ade00596f16331a02ab92c5e
treec6d18d969b76f61ebbfa777caf2706af5873a98f
parent4549dce39c1479c5cc798abedb64500ff0f7ef17
bio: use bio_kmalloc() in copy/map functions

Impact: remove possible deadlock condition

There is no reason to use mempool backed allocation for map functions.
Also, because kern mapping is used inside LLDs (e.g. for EH), using
mempool backed allocation can lead to deadlock under extreme
conditions (mempool already consumed by the time a request reached EH
and requests are blocked on EH).

Switch copy/map functions to bio_kmalloc().

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/bio.c