Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:linbit-drbd
drbd-kmp
drbd-8.3.6-2.6.32-fixes.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File drbd-8.3.6-2.6.32-fixes.diff of Package drbd-kmp
diff --git a/drbd/drbd_nl.c b/drbd/drbd_nl.c index afbbbfc..2c69c16 100644 --- a/drbd/drbd_nl.c +++ b/drbd/drbd_nl.c @@ -1287,8 +1287,7 @@ STATIC int drbd_nl_net_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *nlp, goto fail; } - if (crypto_tfm_alg_type(crypto_hash_tfm(tfm)) - != CRYPTO_ALG_TYPE_HASH) { + if (!drbd_crypto_is_hash(crypto_hash_tfm(tfm))) { retcode = ERR_AUTH_ALG_ND; goto fail; } diff --git a/drbd/drbd_req.c b/drbd/drbd_req.c index 761f75d..0580407 100644 --- a/drbd/drbd_req.c +++ b/drbd/drbd_req.c @@ -60,8 +60,8 @@ static void _drbd_start_io_acct(struct drbd_conf *mdev, struct drbd_request *req cpu = part_stat_lock(); part_stat_inc(cpu, &mdev->vdisk->part0, ios[rw]); part_stat_add(cpu, &mdev->vdisk->part0, sectors[rw], bio_sectors(bio)); + part_inc_in_flight(&mdev->vdisk->part0, rw); part_stat_unlock(); - mdev->vdisk->part0.in_flight++; #endif } @@ -82,8 +82,8 @@ static void _drbd_end_io_acct(struct drbd_conf *mdev, struct drbd_request *req) cpu = part_stat_lock(); part_stat_add(cpu, &mdev->vdisk->part0, ticks[rw], duration); part_round_stats(cpu, &mdev->vdisk->part0); + part_dec_in_flight(&mdev->vdisk->part0, rw); part_stat_unlock(); - mdev->vdisk->part0.in_flight--; #endif } diff --git a/drbd/drbd_wrappers.h b/drbd/drbd_wrappers.h index 244f806..2bd0717 100644 --- a/drbd/drbd_wrappers.h +++ b/drbd/drbd_wrappers.h @@ -121,6 +121,11 @@ extern BIO_ENDIO_TYPE drbd_endio_read_sec BIO_ENDIO_ARGS(struct bio *bio, int er extern BIO_ENDIO_TYPE drbd_endio_write_sec BIO_ENDIO_ARGS(struct bio *bio, int error); extern BIO_ENDIO_TYPE drbd_endio_pri BIO_ENDIO_ARGS(struct bio *bio, int error); +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32) +#define part_inc_in_flight(A, B) part_inc_in_flight(A) +#define part_dec_in_flight(A, B) part_dec_in_flight(A) +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) /* Before 2.6.23 (with 20c2df83d25c6a95affe6157a4c9cac4cf5ffaac) kmem_cache_create had a ctor and a dtor */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor