On 7/27/19 5:37 AM, Douglas Gilbert wrote: > Track the number of submitted and waiting (for read/receive) > requests on each file descriptor with two atomic integers. > This speeds sg_poll() and ioctl(SG_GET_NUM_WAITING) which > are oft used with the asynchronous (non-blocking) interfaces. > > Signed-off-by: Douglas Gilbert <dgilbert@xxxxxxxxxxxx> > --- > drivers/scsi/sg.c | 54 +++++++++++++++++++++++------------------------ > 1 file changed, 27 insertions(+), 27 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)