All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SCSI: Get SG_ALL out of the way
@ 2007-08-09 17:09 Boaz Harrosh
  2007-08-09 17:21 ` Boaz Harrosh
  0 siblings, 1 reply; 2+ messages in thread
From: Boaz Harrosh @ 2007-08-09 17:09 UTC (permalink / raw)
  To: Jens Axboe, James Bottomley, FUJITA Tomonori; +Cc: linux-scsi

Jens hi playing with sglist and iscsi I stumbled on this.
You might want to add it to the sglist tree. Or maybe
James wants to include it for next merge window.

===============================================================

  - Some 50 scsi drivers use SG_ALL for their .sg_tablesize
    So a value of 255 is a bit specific. Change it to ~0
    as meaning MAX_ what ever unsigned type it will ever be.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
---
 include/scsi/scsi_host.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index 88f6871..b84a4eb 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -30,7 +30,7 @@ struct blk_queue_tags;
  *	 used in one scatter-gather request.
  */
 #define SG_NONE 0
-#define SG_ALL 0xff
+#define SG_ALL (~0)
 
 
 #define DISABLE_CLUSTERING 0
-- 
1.5.2.2.249.g45fd


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] SCSI: Get SG_ALL out of the way
  2007-08-09 17:09 [PATCH] SCSI: Get SG_ALL out of the way Boaz Harrosh
@ 2007-08-09 17:21 ` Boaz Harrosh
  0 siblings, 0 replies; 2+ messages in thread
From: Boaz Harrosh @ 2007-08-09 17:21 UTC (permalink / raw)
  To: Jens Axboe, James Bottomley, FUJITA Tomonori; +Cc: linux-scsi

Boaz Harrosh wrote:
> Jens hi playing with sglist and iscsi I stumbled on this.
> You might want to add it to the sglist tree. Or maybe
> James wants to include it for next merge window.
> 
> ===============================================================
> 
>   - Some 50 scsi drivers use SG_ALL for their .sg_tablesize
>     So a value of 255 is a bit specific. Change it to ~0
>     as meaning MAX_ what ever unsigned type it will ever be.
> 
> Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
> ---
>  include/scsi/scsi_host.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
> index 88f6871..b84a4eb 100644
> --- a/include/scsi/scsi_host.h
> +++ b/include/scsi/scsi_host.h
> @@ -30,7 +30,7 @@ struct blk_queue_tags;
>   *	 used in one scatter-gather request.
>   */
>  #define SG_NONE 0
> -#define SG_ALL 0xff
> +#define SG_ALL (~0)
>  
>  
>  #define DISABLE_CLUSTERING 0

Sorry about that patch. I just did a make allmodconfig and it 
appears that some drivers use this constant as an Array size.
I will submit a new Patch.

Boaz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-09 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-09 17:09 [PATCH] SCSI: Get SG_ALL out of the way Boaz Harrosh
2007-08-09 17:21 ` Boaz Harrosh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.