Re: [PATCH] loop: remove union of use_aio and ref in struct loop_cmd

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

 



On 09/20/2017 03:24 PM, Omar Sandoval wrote:
> From: Omar Sandoval <osandov@xxxxxx>
> 
> When the request is completed, lo_complete_rq() checks cmd->use_aio.
> However, if this is in fact an aio request, cmd->use_aio will have
> already been reused as cmd->ref by lo_rw_aio*. Fix it by not using a
> union. On x86_64, there's a hole after the union anyways, so this
> doesn't make struct loop_cmd any bigger.

Thanks Omar, applied.

-- 
Jens Axboe




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux