Re: [PATCH] target: Have core_tmr_alloc_req() take an explicit GFP_xxx flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2011-10-06 at 09:56 -0700, Roland Dreier wrote:
> 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@xxxxxxxxxxxxxxx>
> ---
>  drivers/infiniband/ulp/srpt/ib_srpt.c           |    2 +-
>  drivers/target/iscsi/iscsi_target_util.c        |    3 ++-
>  drivers/target/loopback/tcm_loop.c              |    2 +-
>  drivers/target/target_core_tmr.c                |    6 +++---
>  drivers/target/tcm_fc/tfc_cmd.c                 |    2 +-
>  drivers/target/tcm_qla2xxx/tcm_qla2xxx_fabric.c |    2 +-
>  include/target/target_core_tmr.h                |    2 +-
>  7 files changed, 10 insertions(+), 9 deletions(-)
> 

Thanks for fixing this up Roland.  Committed into lio-core-2.6.git and
will get this queued for v3.2.

--nab

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux