Re: [RFC PATCH 2/4] scsi: iscsi: Tell drivers when we must not block

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

 



On 3/7/22 10:59 PM, Bart Van Assche wrote:
> On 3/7/22 16:39, Mike Christie wrote:
>> -static int iscsi_iser_task_xmit(struct iscsi_task *task)
>> +static int iscsi_iser_task_xmit(struct iscsi_task *task, bool dontwait)
> 
> Arguments with "not" in their name easily lead to double negations. Has it been considered to change "bool dontwait" into "bool may_sleep" and to inverse the argument passed to this and similar functions?

Yeah, I'm not tied to any naming. I just copied the name from the
network layer's MSG_DONTWAIT flag.

I was going to suggest something with "block" in the name but I
I saw in your other comment you might like something with sleep.

may_sleep is fine with me. For the queuecommand related field,
I'll do a sleep variant too.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux