Re: [PATCH v2 05/18] sg: bitops in sg_device

2019-07-29 Thread Douglas Gilbert
On 2019-07-29 1:16 p.m., Hannes Reinecke wrote: On 7/27/19 5:37 AM, Douglas Gilbert wrote: Introduce bitops in sg_device to replace an atomic, a bool and a char. That char (sgdebug) had been reduced to only two states. Add some associated macros to make the code a little clearer. Signed-off-by:

Re: [PATCH v2 05/18] sg: bitops in sg_device

2019-07-29 Thread Hannes Reinecke
On 7/27/19 5:37 AM, Douglas Gilbert wrote: > Introduce bitops in sg_device to replace an atomic, a bool and a > char. That char (sgdebug) had been reduced to only two states. > Add some associated macros to make the code a little clearer. > > Signed-off-by: Douglas Gilbert > --- > drivers/scsi/s

[PATCH v2 05/18] sg: bitops in sg_device

2019-07-26 Thread Douglas Gilbert
Introduce bitops in sg_device to replace an atomic, a bool and a char. That char (sgdebug) had been reduced to only two states. Add some associated macros to make the code a little clearer. Signed-off-by: Douglas Gilbert --- drivers/scsi/sg.c | 104 +++---