Re: [PATCH 2/7] target: Add TARGET_SCF_ACK_KREF flag usage

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

 



On Mon, 28 November 2011 03:07:00 -0500, Christoph Hellwig wrote:
> 
> Why don't you simply do the kref_get after target_get_sess_cmd has
> returned, avoiding the parameter to target_get_sess_cmd?
> 
> > +	int rc, flags = (bidi) ? TARGET_SCF_BIDI_OP : 0 | TARGET_SCF_ACK_KREF;
> 
> no need for the braces around bidi.

And isn't "0 | TARGET_SCF_ACK_KREF" the same as "TARGET_SCF_ACK_KREF"?

Jörn

-- 
Functionality is an asset, but code is a liability.
--Ted Dziuba
--
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