Re: [PATCH] sg: retrofit SG_FLAG_Q_AT_TAIL flag

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

 



Hi Doug,

 > Now I decided to check the SG_IO ioctl used directly
 > against block devices and it calls:
 >     blk_execute_rq(q, bd_disk, rq, 0);
 > 
 > The last argument is 'at_head' so it has been queuing
 > at_tail for some time. How is that for compatibility??
 > 
 > That almost suggests there should be a
 >    #define SG_FLAG_Q_AT_HEAD 0x20
 > 
 > added to sg.h to cover all the bases.

I would have to agree that default should be queue at tail and option
should be to queue at head since that presents risk of starvation and
is generally not what is desired, just like normal SCSI queue at head
in the target.

I'll give your patch a spin on live hardware soon.

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

[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