Re: [PATCH 2/4] block: check virt boundary in bio_will_gap()

2016-02-16 Thread Ming Lei
On Tue, Feb 16, 2016 at 4:27 AM, Sagi Grimberg wrote: > diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 4571ef1..b8ff6a3 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1388,7 +1388,7 @@ static inline bool bvec_gap_to_prev(struct >>>

Re: [PATCH 2/4] block: check virt boundary in bio_will_gap()

2016-02-16 Thread Ming Lei
On Tue, Feb 16, 2016 at 4:27 AM, Sagi Grimberg wrote: > diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 4571ef1..b8ff6a3 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1388,7 +1388,7 @@ static inline bool bvec_gap_to_prev(struct >>>

Re: [PATCH 2/4] block: check virt boundary in bio_will_gap()

2016-02-15 Thread Sagi Grimberg
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 4571ef1..b8ff6a3 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1388,7 +1388,7 @@ static inline bool bvec_gap_to_prev(struct request_queue *q, static inline bool bio_will_gap(struct request_queue *q, stru

Re: [PATCH 2/4] block: check virt boundary in bio_will_gap()

2016-02-15 Thread Ming Lei
On Mon, Feb 15, 2016 at 4:22 PM, Sagi Grimberg wrote: > >> diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h >> index 4571ef1..b8ff6a3 100644 >> --- a/include/linux/blkdev.h >> +++ b/include/linux/blkdev.h >> @@ -1388,7 +1388,7 @@ static inline bool bvec_gap_to_prev(struct >> request_qu

Re: [PATCH 2/4] block: check virt boundary in bio_will_gap()

2016-02-15 Thread Sagi Grimberg
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 4571ef1..b8ff6a3 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1388,7 +1388,7 @@ static inline bool bvec_gap_to_prev(struct request_queue *q, static inline bool bio_will_gap(struct request_queue *q, stru

[PATCH 2/4] block: check virt boundary in bio_will_gap()

2016-02-14 Thread Ming Lei
In the following patch, the way for figuring out the last bvec will be changed with a bit cost introduced, so return immediately if the queue doesn't have virt boundary limit. Actually most of devices have not this limit. Cc: Sagi Grimberg Cc: Christoph Hellwig Signed-off-by: Ming Lei --- incl