Re: [PATCH 01/19] sg: move functions around

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

 



On 5/24/19 11:47 AM, Douglas Gilbert wrote:
> Move code around so it has the basic ordering: open(), close(),
> write(), read(), ioctl(), other system calls (e.g. mmap()),
> support code and finally debug code. The change was to put the
> write() associated code before the read() code. The write()
> system call is associated with submitting SCSI commands (i.e.
> writing metadata to the device).  The read() system call is
> associated with receiving the responses of earlier submitted
> commands.
> 
> Helper functions are often placed above their caller to reduce
> the number of forward function declarations needed.

Moving helper functions in front of their caller is useful but random
reordering of functions not. Such a random reordering of code pollutes
the git history. Please don't do that.

Thanks,

Bart.



[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