diff options
-rw-r--r-- | drivers/scsi/iscsi_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 4e4b1061a5e9..1b495afe6d17 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c | |||
@@ -109,7 +109,7 @@ iscsi_buf_init_sg(struct iscsi_buf *ibuf, struct scatterlist *sg) | |||
109 | /* | 109 | /* |
110 | * Fastpath: sg element fits into single page | 110 | * Fastpath: sg element fits into single page |
111 | */ | 111 | */ |
112 | if (sg->length + sg->offset <= PAGE_SIZE && page_count(sg->page) >= 2) | 112 | if (sg->length + sg->offset <= PAGE_SIZE && !PageSlab(sg->page)) |
113 | ibuf->use_sendmsg = 0; | 113 | ibuf->use_sendmsg = 0; |
114 | else | 114 | else |
115 | ibuf->use_sendmsg = 1; | 115 | ibuf->use_sendmsg = 1; |