]> git.baikalelectronics.ru Git - kernel.git/commit
target: Have core_tmr_alloc_req() take an explicit GFP_xxx flag
authorRoland Dreier <roland@purestorage.com>
Thu, 6 Oct 2011 16:56:16 +0000 (09:56 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:20:53 +0000 (03:20 +0000)
commit14bb4d40a056b24bf6df4fa2c7ea2f8a9c29f00e
tree59d5bd7db7d4040ea91def8676cca5334f9926a6
parent0150c8cbf8a12406c90c1a07a76e0a95c0c265fd
target: Have core_tmr_alloc_req() take an explicit GFP_xxx flag

Testing in_interrupt() to know when sleeping is allowed is not really
reliable (since eg it won't be true if the caller is holding a spinlock).
Instead have the caller tell core_tmr_alloc_req() what GFP_xxx to use;
every caller except tcm_qla2xxx can use GFP_KERNEL.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_util.c
drivers/target/loopback/tcm_loop.c
drivers/target/target_core_tmr.c
drivers/target/tcm_fc/tfc_cmd.c
include/target/target_core_tmr.h